From 69421dc2c740334578f74a9441bc1f01080b3a95 Mon Sep 17 00:00:00 2001 From: Ivan-Perez Date: Thu, 12 May 2016 10:57:14 +0200 Subject: WString.h: Add const qualifier to `begin` and `end` functions --- cores/arduino/WString.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cores') 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; -- cgit v1.2.3-18-g5258