aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorIvan-Perez <ivanperez2@gmail.com>2016-05-12 10:57:14 +0200
committerCristian Maglie <c.maglie@arduino.cc>2016-06-28 20:58:38 +0200
commit69421dc2c740334578f74a9441bc1f01080b3a95 (patch)
tree5a1fcd7d561d9573a0bc3177c8b957c5ae198dbb /cores/arduino/WString.h
parent43d5e073b440e3812e20c9a941a06ad81dffbfc1 (diff)
WString.h: Add const qualifier to `begin` and `end` functions
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index b7d3852..89fcaa5 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -160,9 +160,9 @@ public:
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
{getBytes((unsigned char *)buf, bufsize, index);}
- const char * c_str() const { return buffer; }
- const char* begin() { return c_str(); }
- const char* end() { return c_str() + length(); }
+ const char* c_str() const { return buffer; }
+ const char* begin() const { return c_str(); }
+ const char* end() const { return c_str() + length(); }
// search
int indexOf( char ch ) const;