r = pJsonArray->Add(pNewValue);
SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagated.", GetErrorMessage(r));
+
+ pNewValue = null;
}
return pJsonArray;
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.");
SysTryCatch(NID_WEB_JSON, r == E_SUCCESS, , r, "[%s] Propagated.", GetErrorMessage(r));
pNewKey.release();
+ pNewValue = null;
}
}
return pJsonObject;
}
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.");