diff --git a/js/js2/xmlparser.h b/js/js2/xmlparser.h index eb20a7a0d4d9..e85e9e3b9ea7 100644 --- a/js/js2/xmlparser.h +++ b/js/js2/xmlparser.h @@ -23,7 +23,7 @@ public: XMLTag() : mFlag(Tag) { } XMLTag(String name) : mName(name), mFlag(Tag) { } - void addAttribute(String name, String value) { mAttributeList.insert(AttributeValue(name, value) ); } + void addAttribute(const String &name, const String &value) { mAttributeList.insert(AttributeValue(name, value) ); } bool getValue(const String &name, String &value); bool hasAttribute(const String &name) { return (mAttributeList.find(name) != mAttributeList.end()); } diff --git a/js2/src/xmlparser.h b/js2/src/xmlparser.h index eb20a7a0d4d9..e85e9e3b9ea7 100644 --- a/js2/src/xmlparser.h +++ b/js2/src/xmlparser.h @@ -23,7 +23,7 @@ public: XMLTag() : mFlag(Tag) { } XMLTag(String name) : mName(name), mFlag(Tag) { } - void addAttribute(String name, String value) { mAttributeList.insert(AttributeValue(name, value) ); } + void addAttribute(const String &name, const String &value) { mAttributeList.insert(AttributeValue(name, value) ); } bool getValue(const String &name, String &value); bool hasAttribute(const String &name) { return (mAttributeList.find(name) != mAttributeList.end()); }