[Notification] - The problem with setting Led color resolved
authorAndrzej Popowski <a.popowski@samsung.com>
Mon, 1 Jun 2015 09:22:58 +0000 (11:22 +0200)
committerAndrzej Popowski <a.popowski@samsung.com>
Mon, 1 Jun 2015 09:43:44 +0000 (11:43 +0200)
Change-Id: I1e9a8dfeb9210e6f9e9f7ddf6b71f34dfd9ae7e7
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/notification/status_notification.cc

index 12e49c6..38ab4f2 100644 (file)
@@ -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;
   }