Resolve the "Klocwork" detected defect and add debug feature.
[platform/framework/native/appfw.git] / src / locales / FLcl_CurrencyImpl.cpp
index 9f76a42..e09ea79 100644 (file)
@@ -23,7 +23,8 @@
 
 #include <FBaseSysLog.h>
 #include <FApp_AppInfo.h>
-
+#include <FBaseColArrayList.h>
+#include <FBaseColAllElementsDeleter.h>
 #include "FLcl_LocaleData.h"
 #include "FLcl_LocaleImpl.h"
 #include "FLcl_CurrencyImpl.h"
@@ -121,7 +122,7 @@ _CurrencyImpl::GetAvailableCurrenciesN(void)
                        pCurr->__currencyCodeSymbol = currCode + "_" + currSymbol;
                        if (!pNewList->Contains(*(pCurr.get())))
                        {
-                               result r = pNewList->Add(*(pCurr.get()));
+                               result r = pNewList->Add(pCurr.get());
                                SysTryReturn(NID_LCL, !IsFailed(r), null, E_SYSTEM, "Itis fail to make the currency list.");
                                pCurr.release();
                        }