From: Andrzej Popowski Date: Mon, 1 Jun 2015 09:22:58 +0000 (+0200) Subject: [Notification] - The problem with setting Led color resolved X-Git-Tag: accepted/tizen/tv/20150615.001251^2~2^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e984e6b74158ba435658f626d11b222eb025002;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Notification] - The problem with setting Led color resolved Change-Id: I1e9a8dfeb9210e6f9e9f7ddf6b71f34dfd9ae7e7 Signed-off-by: Andrzej Popowski --- diff --git a/src/notification/status_notification.cc b/src/notification/status_notification.cc index 12e49c6..38ab4f2 100644 --- a/src/notification/status_notification.cc +++ b/src/notification/status_notification.cc @@ -45,7 +45,7 @@ StatusNotification::~StatusNotification() { bool StatusNotification::IsColorFormatNumberic(const std::string& color) { LoggerD("Enter"); std::string hexCode = "0123456789abcdef"; - if (color.length() != 7 || !color.compare(0, 1, "#")) { + if (color.length() != 7 || '#' != color[0]) { return false; }