Skip to content

Commit 69421dc

Browse files
Ivan-Perezcmaglie
authored andcommitted
WString.h: Add const qualifier to begin and end functions
1 parent 43d5e07 commit 69421dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/arduino/WString.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ class String
160160
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
161161
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
162162
{getBytes((unsigned char *)buf, bufsize, index);}
163-
const char * c_str() const { return buffer; }
164-
const char* begin() { return c_str(); }
165-
const char* end() { return c_str() + length(); }
163+
const char* c_str() const { return buffer; }
164+
const char* begin() const { return c_str(); }
165+
const char* end() const { return c_str() + length(); }
166166

167167
// search
168168
int indexOf( char ch ) const;

0 commit comments

Comments
 (0)