From d4b53fcf4b0642509e2ff95f35bb6dbd8ad24aeb Mon Sep 17 00:00:00 2001 From: Gaurav Date: Thu, 30 Jul 2015 13:17:04 +0530 Subject: [PATCH] CZString assignment operator - pass by reference Passing by reference. --- include/json/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/json/value.h b/include/json/value.h index 197a85614..592b99a83 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -171,7 +171,7 @@ class JSON_API Value { CZString(const char* cstr, DuplicationPolicy allocate); CZString(const CZString& other); ~CZString(); - CZString& operator=(CZString other); + CZString& operator=(CZString& other); bool operator<(const CZString& other) const; bool operator==(const CZString& other) const; ArrayIndex index() const;