[Push] Prefix string type with namespace std 93/172093/1 accepted/tizen/unified/20180312.145917 submit/tizen/20180312.085619 submit/tizen/20180312.090836
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Sat, 10 Mar 2018 02:25:34 +0000 (03:25 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Sat, 10 Mar 2018 02:32:07 +0000 (03:32 +0100)
The patch fixes build break in Tizen:Unified.
The string type without std::string is not recognized by compiler.

Change-Id: I048bad0a1d71cb841965a84b2d11d2afb9c19eea
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
src/push/push_manager_common.cc

index 406eb4c..c307e95 100644 (file)
@@ -93,8 +93,8 @@ void PushManagerCommon::notificationToJson(push_service_notification_h noti,
     // parse query string and find value for alertMessage
     pcrecpp::StringPiece input(fullMessage);
     pcrecpp::RE re("([^=]+)=([^&]*)&?");
-    string key;
-    string value;
+    std::string key;
+    std::string value;
     while (re.Consume(&input, &key, &value)) {
       if (key == "alertMessage") {
         (*obj)["alertMessage"] = picojson::value(value);