Update wrt-plugins-common_0.3.53
[framework/web/wrt-plugins-common.git] / src / modules / tizen / WidgetInterfaceDAO / WidgetInterfaceDAO.cpp
index 2ce1805..246c99f 100644 (file)
@@ -290,7 +290,7 @@ size_t WidgetInterfaceDAO::getStorageSize() const
     return 0;
 }
 
-std::string WidgetInterfaceDAO::getValueByIndex(size_t index) const
+std::string WidgetInterfaceDAO::getKeyByIndex(size_t index) const
 {
     using namespace DPL::DB::ORM;
     using namespace DPL::DB::ORM::widget_interface;
@@ -300,7 +300,7 @@ std::string WidgetInterfaceDAO::getValueByIndex(size_t index) const
         Properties::Select select(&m_databaseInterface);
         select.OrderBy("key");
         std::list<DPL::String> list =
-            select.GetValueList<Properties::value>();
+            select.GetValueList<Properties::key>();
         if (index >= list.size()) {
             Throw(Commons::InvalidArgumentException);
         }