HasMember use const char *

Fork of MbedJSONValue by Samuel Mokrani

Files at this revision

API Documentation at this revision

Comitter:
bonchenko
Date:
Fri Aug 07 02:53:04 2015 +0000
Parent:
4:10a99cdf7846
Commit message:
Hasmember parameter now uses const char* instead of char*

Changed in this revision

MbedJSONValue.cpp Show annotated file Show diff for this revision Revisions of this file
MbedJSONValue.h Show annotated file Show diff for this revision Revisions of this file
--- a/MbedJSONValue.cpp	Thu Sep 22 10:57:37 2011 +0000
+++ b/MbedJSONValue.cpp	Fri Aug 07 02:53:04 2015 +0000
@@ -28,7 +28,7 @@
     _type = TypeNull;
 }
 
-bool MbedJSONValue::hasMember(char * name)
+bool MbedJSONValue::hasMember(const char * name)
 {
     for(int i = 0; i < index_token; i++)
         if( !strcmp(name, (*(token_name[i])).c_str() ))
--- a/MbedJSONValue.h	Thu Sep 22 10:57:37 2011 +0000
+++ b/MbedJSONValue.h	Fri Aug 07 02:53:04 2015 +0000
@@ -284,7 +284,7 @@
     * @param name Identifier
     * @return true if the object is of type TypeObject AND contains a member named "name", false otherwise
     */
-    bool hasMember(char * name);
+    bool hasMember(const char * name);
 
     /**
     * Convert an MbedJSONValue in a JSON frame