summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-16 16:02:58 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-16 16:02:58 +0000
commit2e93497d5b19b4fc46f84cb18267bce357e48747 (patch)
tree32682bcd95fa505aec3e8cf16023e8babfb07829 /protocols/Tox/src/tox_utils.cpp
parent5cbde68cad776dd10e36b72f030712abdf3f225a (diff)
Tox:
- added netlib logging - minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@10203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_utils.cpp')
-rw-r--r--protocols/Tox/src/tox_utils.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp
index f9e315c9d3..4fb527df27 100644
--- a/protocols/Tox/src/tox_utils.cpp
+++ b/protocols/Tox/src/tox_utils.cpp
@@ -2,20 +2,14 @@
TOX_USERSTATUS CToxProto::MirandaToToxStatus(int status)
{
- TOX_USERSTATUS userstatus;
+ TOX_USERSTATUS userstatus = TOX_USERSTATUS_NONE;
switch (status)
{
- case ID_STATUS_ONLINE:
- userstatus = TOX_USERSTATUS_NONE;
- break;
case ID_STATUS_AWAY:
userstatus = TOX_USERSTATUS_AWAY;
break;
case ID_STATUS_OCCUPIED:
userstatus = TOX_USERSTATUS_BUSY;
-break;
- default:
- userstatus = TOX_USERSTATUS_INVALID;
break;
}
return userstatus;
@@ -23,7 +17,7 @@ break;
int CToxProto::ToxToMirandaStatus(TOX_USERSTATUS userstatus)
{
- int status;
+ int status = ID_STATUS_OFFLINE;
switch (userstatus)
{
case TOX_USERSTATUS_NONE:
@@ -35,9 +29,6 @@ int CToxProto::ToxToMirandaStatus(TOX_USERSTATUS userstatus)
case TOX_USERSTATUS_BUSY:
status = ID_STATUS_OCCUPIED;
break;
- default:
- status = ID_STATUS_OFFLINE;
- break;
}
return status;
}