aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-05-06 18:10:29 +0200
committerCristian Maglie <c.maglie@bug.st>2013-05-06 18:10:29 +0200
commiteb40f35b2d95b2701d92e3b8baf53832a3bd2993 (patch)
tree2f950c61376b4488baf67ac15309ab865e553ef4 /cores/arduino/WString.h
parent8673113e43fa38c936baca717c8670c54abad6bc (diff)
Added const modifier to String.c_str()
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index b3e280a..642b016 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -147,7 +147,7 @@ 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);}
- char* c_str() const { return buffer; }
+ const char * c_str() const { return buffer; }
// search
int indexOf( char ch ) const;