Skip to content

Commit 07fa22f

Browse files
Ivan-Perezcmaglie
authored andcommitted
WString.h: Add const qualifier to begin and end functions
1 parent ae0d9dc commit 07fa22f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hardware/arduino/avr/cores/arduino/WString.h

+3-3
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)