summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/microsoft_service.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-03 16:02:14 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-05-03 16:02:14 +0200
commit3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a (patch)
tree412a28ef6a572efc7039df1c363bf47a3dec4b19 /plugins/CloudFile/src/Services/microsoft_service.cpp
parent9a6f750a482d1d1ebf4281bb7bf8133e547ad438 (diff)
mir_forkThread<typename> - stronger typizatioin for thread function parameter
Diffstat (limited to 'plugins/CloudFile/src/Services/microsoft_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/microsoft_service.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp
index 2a3f3c19b4..722560aec8 100644
--- a/plugins/CloudFile/src/Services/microsoft_service.cpp
+++ b/plugins/CloudFile/src/Services/microsoft_service.cpp
@@ -36,7 +36,7 @@ bool COneDriveService::IsLoggedIn()
ptrA token(getStringA("TokenSecret"));
if (!token || token[0] == 0)
return false;
- time_t now = time(nullptr);
+ time_t now = time(0);
time_t expiresIn = getDword("ExpiresIn");
return now < expiresIn;
}
@@ -54,7 +54,7 @@ void COneDriveService::Login(HWND owner)
db_set_s(NULL, GetAccountName(), "TokenSecret", node.as_string().c_str());
node = root.at("expires_in");
- time_t expiresIn = time(nullptr) + node.as_int();
+ time_t expiresIn = time(0) + node.as_int();
setDword("ExpiresIn", expiresIn);
return;
@@ -117,7 +117,7 @@ void COneDriveService::RequestAccessTokenThread(void *param)
setString("TokenSecret", node.as_string().c_str());
node = root.at("expires_in");
- time_t expiresIn = time(nullptr) + node.as_int();
+ time_t expiresIn = time(0) + node.as_int();
setDword("ExpiresIn", expiresIn);
node = root.at("refresh_token");