Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Protecting String copy() and move().

  • Loading branch information...
commit 6f3ceb399da6411b40ec97525af7397ba96556ee 1 parent 488e672
@damellis damellis authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 hardware/arduino/cores/arduino/WString.h
View
11 hardware/arduino/cores/arduino/WString.h
@@ -61,11 +61,6 @@ class String
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 @@ class String
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
Please sign in to comment.
Something went wrong with that request. Please try again.