2006-05-02 H.J. Lu <hongjiu.lu@intel.com>

* ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
	* ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
	* ld-srec/sr3.cc (Foo::Foo): Likewise.
This commit is contained in:
H.J. Lu
2006-05-02 13:35:45 +00:00
parent f9f21a03c5
commit a78d2a672f
4 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
* ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
* ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
* ld-srec/sr3.cc (Foo::Foo): Likewise.
2006-05-02 Paul Brook <paul@codesourcery.com> 2006-05-02 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-elf.exp: Add thumb-rel32. * ld-arm/arm-elf.exp: Add thumb-rel32.

View File

@ -38,7 +38,7 @@ Foo::Foo ()
#endif #endif
} }
Foo::Foo (char* msg) Foo::Foo (const char* msg)
{ {
i = ++foos; i = ++foos;
strncpy( message, msg, len); strncpy( message, msg, len);

View File

@ -17,7 +17,7 @@ public:
static void init_foo (); static void init_foo ();
static int nb_foos() { return foos; } static int nb_foos() { return foos; }
Foo(); Foo();
Foo( char* message); Foo(const char* message);
Foo(const Foo&); Foo(const Foo&);
Foo & operator= (const Foo&); Foo & operator= (const Foo&);
~Foo (); ~Foo ();

View File

@ -11,7 +11,7 @@ public:
static void init_foo (); static void init_foo ();
static int nb_foos() { return foos; } static int nb_foos() { return foos; }
Foo(); Foo();
Foo( char* message); Foo(const char* message);
Foo(const Foo&); Foo(const Foo&);
Foo & operator= (const Foo&); Foo & operator= (const Foo&);
~Foo (); ~Foo ();
@ -93,7 +93,7 @@ Foo::Foo ()
i = ++foos; i = ++foos;
} }
Foo::Foo (char*) Foo::Foo (const char*)
{ {
i = ++foos; i = ++foos;
} }