removal of warnings submit/tizen_2.2/20130714.152941
authorBINDUCHAITANYA TUMMALA <bc.tummala@samsung.com>
Tue, 9 Jul 2013 08:29:40 +0000 (13:59 +0530)
committerBINDUCHAITANYA TUMMALA <bc.tummala@samsung.com>
Tue, 9 Jul 2013 08:29:40 +0000 (13:59 +0530)
Change-Id: I5663db6645f831ee816981ba9d86756feda88d18
Signed-off-by: BINDUCHAITANYA TUMMALA <bc.tummala@samsung.com>
src/FWebJsonJsonArray.cpp
src/FWebJsonJsonObject.cpp
src/FWebJson_JsonWriterImpl.cpp

index d7f29e7..548b3e3 100644 (file)
@@ -474,6 +474,8 @@ JsonArray::CloneN(void) const
 
                r = pJsonArray->Add(pNewValue);
                SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagated.", GetErrorMessage(r));
+
+               pNewValue = null;
        }
 
        return pJsonArray;
index 36722d6..ec81493 100644 (file)
@@ -463,10 +463,10 @@ JsonObject::CloneN(void) const
                while (pMapEnum->MoveNext() == E_SUCCESS)
                {
                        r = pMapEnum->GetKey(pKey);
-                       SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+                       SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
                        r = pMapEnum->GetValue(pValue);
-                       SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+                       SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
                        pNewKey = unique_ptr<String>(new (std::nothrow) String(*pKey));
                        SysTryCatch(NID_WEB_JSON, pNewKey.get(), r = E_OUT_OF_MEMORY, r, "[E_OUT_OF_MEMORY] Memory allocation failed.");
@@ -502,6 +502,7 @@ JsonObject::CloneN(void) const
                        SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagated.", GetErrorMessage(r));
 
                        pNewKey.release();
+                       pNewValue = null;
                }
        }
        return pJsonObject;
index 770c682..d694d5e 100755 (executable)
@@ -389,7 +389,7 @@ _JsonWriterImpl::JsonNumberToString(double value, String& numString)
        }
 
        locale_t _locale = 0;
-       char* pLocale = "C";
+       const char* pLocale = "C";
 
        _locale = newlocale(LC_ALL, pLocale, null);
        SysTryReturnResult(NID_BASE, _locale != null, E_SYSTEM, "Creating a new locale object failed.");