summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_struct.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2016-04-13 04:49:56 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2016-04-13 04:49:56 +0000
commit3269e1db8b4365187485d600cb2ebdda4894996a (patch)
treec85e4a2d8c80b7bdad48cc3eac2d811478076c4a /protocols/VKontakte/src/vk_struct.cpp
parent1bc1672368e1ba87a68fca21b846c70156e71f05 (diff)
VKontakte:
radiobox group settings -> combobox (patch by MikalaiR, edited) remove unneeded methods git-svn-id: http://svn.miranda-ng.org/main/trunk@16634 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_struct.cpp')
-rw-r--r--protocols/VKontakte/src/vk_struct.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp
index 7d04d03ea1..8abcc68bb9 100644
--- a/protocols/VKontakte/src/vk_struct.cpp
+++ b/protocols/VKontakte/src/vk_struct.cpp
@@ -229,28 +229,9 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) :
iInvisibleInterval(proto, "InvisibleInterval", 10),
iMaxFriendsCount(proto, "MaxFriendsCount", 1000),
- ptszDefaultGroup(NULL),
- ptszReturnChatMessage(NULL),
- ptszVKLang(NULL),
+ ptszDefaultGroup(proto, "ProtoGroup", _T("VKontakte")),
+ ptszReturnChatMessage(proto, "ReturnChatMessage", TranslateT("I\'m back")),
+ ptszVKLang(proto, "VKLang", NULL)
- m_proto((CVkProto*)proto)
-
-{
- ReloadStrings();
-}
-
-void CVKOptions::ReloadStrings()
{
- if (!m_proto)
- return;
-
- ptszDefaultGroup = m_proto->getTStringA("ProtoGroup");
- ptszReturnChatMessage = m_proto->getTStringA("ReturnChatMessage");
- ptszVKLang = m_proto->getTStringA("VKLang");
-
- if (IsEmpty(ptszDefaultGroup))
- ptszDefaultGroup = mir_tstrdup(_T("VKontakte"));
-
- if (IsEmpty(ptszReturnChatMessage))
- ptszReturnChatMessage = mir_tstrdup(TranslateT("I\'m back"));
}