summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/yandex_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/yandex_service.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp
index acc9fb0315..6609e7c4b3 100644
--- a/plugins/CloudFile/src/Services/yandex_service.cpp
+++ b/plugins/CloudFile/src/Services/yandex_service.cpp
@@ -36,7 +36,7 @@ bool CYandexService::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;
}
@@ -55,7 +55,7 @@ void CYandexService::Login(HWND owner)
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");
@@ -119,7 +119,7 @@ void CYandexService::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");