From 5de53491d607c38286b19989ba7182454f24fabc Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 15 Mar 2017 00:19:35 +0300 Subject: Tox: - tox_network.cpp splitted on two logical parts - tox network status checking moved to separated thread - started rejection of toxThread wrapper --- protocols/Tox/src/tox_profile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/src/tox_profile.cpp') diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index c1d71bd40f..aec34c6381 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -97,16 +97,16 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) return false; } -void CToxProto::SaveToxProfile(CToxThread *toxThread) +void CToxProto::SaveToxProfile(Tox *tox) { mir_cslock locker(profileLock); if (!toxThread) return; - size_t size = tox_get_savedata_size(toxThread->Tox()); + size_t size = tox_get_savedata_size(tox); uint8_t *data = (uint8_t*)mir_calloc(size + TOX_PASS_ENCRYPTION_EXTRA_LENGTH); - tox_get_savedata(toxThread->Tox(), data); + tox_get_savedata(tox, data); pass_ptrA password(mir_utf8encodeW(pass_ptrT(getWStringA("Password")))); if (password && mir_strlen(password)) -- cgit v1.2.3