#include <dpl/wrt-dao-ro/wrt_db_types.h>
#include <dpl/wrt-dao-rw/global_dao.h>
#include <dpl/wrt-dao-ro/global_dao_read_only.h>
+#include <dpl/wrt-dao-ro/config_parser_data.h>
#include <dpl/exception.h>
#define TIMEOUT_DEFAULT 10
return FALSE;
}
}
+ DPL::OptionalString normal_str = DPL::FromUTF8String(temp_arg);
+ WrtDB::NormalizeAndTrimSpaceString(normal_str);
+ std::string normal_arg = DPL::ToUTF8String(*normal_str);
WidgetDAOReadOnlyList widgetList =
WrtDB::WidgetDAOReadOnly::getWidgetList();
temp = DPL::ToUTF8String(package_name);
break;
}
- if (!strcmp(DPL::ToUTF8String(d_pkgname).c_str(), temp_arg)) {
+ if (!strcmp(DPL::ToUTF8String(d_pkgname).c_str(),
+ normal_arg.c_str())) {
WrtDB::WidgetPkgName package_name = (*dao)->getPkgName();
temp = DPL::ToUTF8String(package_name);
break;