From 03a445aa9d60d65135b403343548cb666a323fe9 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Mon, 25 Mar 2013 13:24:55 +0100 Subject: [PATCH] app:// to widget:// scheme for localization [Issue#] N/A [Feature] App to widget scheme transition [Cause] N/A [Solution] N/A [Verification] Build repository. Change-Id: Ie3162f060952ceb48d6d9a61aebb29eab931f6f7 --- modules/localization/src/w3c_file_localization.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/localization/src/w3c_file_localization.cpp b/modules/localization/src/w3c_file_localization.cpp index 4bea51f..d07227a 100644 --- a/modules/localization/src/w3c_file_localization.cpp +++ b/modules/localization/src/w3c_file_localization.cpp @@ -41,7 +41,6 @@ using namespace WrtDB; namespace { const DPL::String FILE_URI_BEGIN = L"file://"; const DPL::String WIDGET_URI_BEGIN = L"widget://"; -const DPL::String APP_URI_BEGIN = L"app://"; const DPL::String LOCALE_PREFIX = L"locales/"; DPL::Optional GetFilePathInWidgetPackageInternal( @@ -141,9 +140,7 @@ DPL::Optional getFilePathInWidgetPackageFromUrl( { DPL::String req = url; - if (req.find(WIDGET_URI_BEGIN) == 0) { - req.erase(0, WIDGET_URI_BEGIN.length()); - } else if (req.find(FILE_URI_BEGIN) == 0) { + if (req.find(FILE_URI_BEGIN) == 0) { req.erase(0, FILE_URI_BEGIN.length()); if (req.find(dao->getPath()) == 0) { req.erase(0, dao->getPath().length()); @@ -157,8 +154,8 @@ DPL::Optional getFilePathInWidgetPackageFromUrl( req.erase(0, position + 1); } } - } else if(req.find(APP_URI_BEGIN) == 0) { - req.erase(0, APP_URI_BEGIN.length()); + } else if(req.find(WIDGET_URI_BEGIN) == 0) { + req.erase(0, WIDGET_URI_BEGIN.length()); DPL::String id = *dao->getTizenAppId(); if(req.substr(0, id.size()) != id) { -- 2.7.4