summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_queue.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:33 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:33 +0000
commit8ef64da1b7cc3ef5026ab2dc80e7e0fd88971d59 (patch)
tree082a1ffd01a4891d847b87eb472d1cc0d6bf3ad2 /protocols/Steam/src/steam_queue.cpp
parentb063b7878c47f85f0760d8fdf9595e3b8b3540cf (diff)
Steam: Small optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@11133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_queue.cpp')
-rw-r--r--protocols/Steam/src/steam_queue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp
index 22096f70be..d500ea708d 100644
--- a/protocols/Steam/src/steam_queue.cpp
+++ b/protocols/Steam/src/steam_queue.cpp
@@ -20,7 +20,7 @@ void CSteamProto::StartQueue()
if (m_hQueueThread == NULL)
{
ptrA token(getStringA("TokenSecret"));
- if (token && lstrlenA(token) > 0)
+ if (token && token[0] != '\0')
{
PushRequest(
new SteamWebApi::LogonRequest(token),
@@ -29,7 +29,7 @@ void CSteamProto::StartQueue()
else
{
ptrA username(mir_urlEncode(ptrA(mir_utf8encodeW(getWStringA("Username")))));
- if (username == NULL || strlen(username) == 0)
+ if (username == NULL || username[0] == '\0')
return;
PushRequest(new SteamWebApi::RsaKeyRequest(username), (RESPONSE)&CSteamProto::OnGotRsaKey);
}