diff options
author | ElzorFox <elzorfox@ya.ru> | 2018-12-26 09:28:57 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2018-12-26 09:28:57 +0500 |
commit | c2139596f3673d1209d7d398deb36f2b7a170af5 (patch) | |
tree | d58380fe00b6983e044c8c67fc9d39e674dd18d7 /protocols/VKontakte/src | |
parent | 17715ed627a2c5bf2e20e358d9bedb2cbd83e846 (diff) |
VKontakte: fix PVS warnings
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_feed.cpp | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index 82f488f5af..e36d2332e1 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -475,7 +475,7 @@ CVKNewsItem* CVkProto::GetVkNotificationsItem(const JSONNode &jnItem, OBJLIST<CV if (!vkNotification)
return nullptr;
- if (vkNotification && !wszFeedback.IsEmpty()) {
+ if (!wszFeedback.IsEmpty()) {
CMStringW wszNotificaton;
wszNotificaton.AppendFormat(wszFeedback, wszNotificationTranslate.c_str(), vkNotification->wszText.c_str());
vkNotification->wszText = wszNotificaton;
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index c4ef960cc0..fd5b1bc621 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -169,7 +169,7 @@ void CVkProto::WorkerThread(void*) ULONG utime = GetTickCount();
lWaitingTime = (utime - uTime[0]) > 1500 ? 0 : 1500 - (utime - uTime[0]);
- if (!(pReq->m_bApiReq) || lWaitingTime < 0)
+ if (!(pReq->m_bApiReq))
lWaitingTime = 0;
}
|