From d91ea9f58d10af27c06aaffb77c2ac7f436cf7ff Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 12 Aug 2015 08:26:18 +0000 Subject: VKontakte: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@14923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 2 +- protocols/VKontakte/src/vk_feed.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 281447f3f5..6bd1d36986 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1074,7 +1074,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport SetBBCString(TranslateT("Link"), iBBC, vkbbcB), SetBBCString(tszTitle, iBBC, vkbbcUrl, tszUrl)); - if (!jnLink["photo"].isnull()) + if (jnLink["photo"]) res.AppendFormat(_T("\n\t%s"), GetVkPhotoItem(jnLink["photo"], iBBC)); if (!tszDescription.IsEmpty()) diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index a9c0b9eea3..abbd9a72bf 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -452,7 +452,7 @@ CVKNewsItem* CVkProto::GetVkGroupInvates(const JSONNode &jnItem, OBJLIST