Protecting String copy() and move().

This commit is contained in:
David A. Mellis 2011-03-13 19:39:04 -04:00
parent 488e672ea0
commit 6f3ceb399d
1 changed files with 6 additions and 5 deletions

View File

@ -61,11 +61,6 @@ public:
unsigned char reserve(unsigned int size);
inline unsigned int length(void) const {return len;}
// copy and move
String & copy(const char *cstr, unsigned int length);
#ifdef __GXX_EXPERIMENTAL_CXX0X__
void move(String &rhs);
#endif
String & operator = (const String &rhs);
String & operator = (const char *cstr);
#ifdef __GXX_EXPERIMENTAL_CXX0X__
@ -160,6 +155,12 @@ protected:
void init(void);
unsigned char changeBuffer(unsigned int maxStrLen);
unsigned char concat(const char *cstr, unsigned int length);
// copy and move
String & copy(const char *cstr, unsigned int length);
#ifdef __GXX_EXPERIMENTAL_CXX0X__
void move(String &rhs);
#endif
};
class StringSumHelper : public String