From: José Bollo Date: Fri, 24 Jan 2020 16:29:41 +0000 (+0100) Subject: Relax computation of appid X-Git-Tag: 8.99.5^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F23642%2F1;p=apps%2Fagl-service-homescreen.git Relax computation of appid The returned appid is now either the part up to the first @ or the entire string if no @ is present. This evolution is needed to able the removal of handling different versions. Bug-AGL: SPEC-2538 Change-Id: Ibe8cfbb60333702ba33d59d3e89f33688d2a0f51 Signed-off-by: José Bollo --- diff --git a/src/hs-appinfo.cpp b/src/hs-appinfo.cpp index 6b22265..9ccd660 100644 --- a/src/hs-appinfo.cpp +++ b/src/hs-appinfo.cpp @@ -418,12 +418,7 @@ std::string HS_AppInfo::id2appid(const std::string &id) const { std::string appid; std::size_t pos = id.find("@"); - if(pos != std::string::npos) { - appid = id.substr(0,pos); - } - else { - AFB_WARNING("input id error."); - } + appid = id.substr(0,pos); return appid; }