diff options
author | aunsane <aunsane@gmail.com> | 2017-03-15 00:19:35 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-15 00:19:35 +0300 |
commit | 5de53491d607c38286b19989ba7182454f24fabc (patch) | |
tree | cb0da96d057fd1f85245ca3ff3423ea3300da060 /protocols/Tox/src/tox_profile.cpp | |
parent | a76c706113f6d9e1a1a253feab46051fb2e6ce12 (diff) |
Tox:
- tox_network.cpp splitted on two logical parts
- tox network status checking moved to separated thread
- started rejection of toxThread wrapper
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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))
|