Explicitly denote the namespace of atof/atoll 53/121253/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 27 Mar 2017 10:05:46 +0000 (19:05 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 27 Mar 2017 10:05:46 +0000 (19:05 +0900)
Change-Id: I602d31126afc50defdcf620f68ce2872623e22bc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/database/Database.cpp
src/server/Credential.cpp

index 54cdfdb..07813ab 100644 (file)
@@ -95,7 +95,7 @@ static inline int64_t __toInt64(const char* str)
        if (!str)
                return 0;
 
-       return atoll(str);
+       return std::atoll(str);
 }
 
 static inline double __toDouble(const char* str)
@@ -103,7 +103,7 @@ static inline double __toDouble(const char* str)
        if (!str)
                return 0;
 
-       return atof(str);
+       return std::atof(str);
 }
 
 static inline std::string __toString(const char* str)
index f232cc4..b72e4b1 100644 (file)
@@ -107,7 +107,7 @@ Credential::Credential(GDBusConnection* conn, const std::string& busName) :
                __valid = false;
        }
 
-       __uid = static_cast<uid_t>(atoll(__user));
+       __uid = static_cast<uid_t>(std::atoll(__user));
 }
 
 Credential::~Credential()