summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_options.cpp4
-rw-r--r--protocols/VKontakte/src/vk_struct.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_options.cpp b/protocols/VKontakte/src/vk_options.cpp
index abbb3e8387..f4334d0b1c 100644
--- a/protocols/VKontakte/src/vk_options.cpp
+++ b/protocols/VKontakte/src/vk_options.cpp
@@ -60,7 +60,7 @@ void CVkAccMgrForm::OnApply()
if (bPassChanged) {
T2Utf szRawPasswd(ptszNewPass);
m_proto->setString("Password", szRawPasswd);
- pass_ptrA pszPass(szRawPasswd);
+ pass_ptrA pszPass(szRawPasswd.detach());
m_ptszOldPass = ptszNewPass;
}
@@ -218,7 +218,7 @@ void CVkOptionAccountForm::OnApply()
if (bPassChanged) {
T2Utf szRawPasswd(ptszNewPass);
m_proto->setString("Password", szRawPasswd);
- pass_ptrA pszPass(szRawPasswd);
+ pass_ptrA pszPass(szRawPasswd.detach());
m_ptszOldPass = ptszNewPass;
}
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp
index 779aab9641..ceaa13c88d 100644
--- a/protocols/VKontakte/src/vk_struct.cpp
+++ b/protocols/VKontakte/src/vk_struct.cpp
@@ -239,7 +239,6 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) :
ReloadStrings();
}
-
void CVKOptions::ReloadStrings()
{
if (!m_proto)