summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
commit34a83475636164cf43551d9ec83ec30da5a7e7f2 (patch)
treec6b3e22f789422e06a96c2ca87dd94fc61eb1dd1 /src/gui/widgets/tabs
parentaf4fcff19a986990d58c50c62bc498690c8293b8 (diff)
downloadplus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.gz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.bz2
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.xz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.zip
Replace size() to empty() where is possible
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/socialplayerstab.h4
-rw-r--r--src/gui/widgets/tabs/socialtabbase.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/socialplayerstab.h b/src/gui/widgets/tabs/socialplayerstab.h
index 447e0791e..f4c3f2bbe 100644
--- a/src/gui/widgets/tabs/socialplayerstab.h
+++ b/src/gui/widgets/tabs/socialplayerstab.h
@@ -156,7 +156,7 @@ class SocialPlayersTab final : public SocialTab
const StringVectCIter i_end = names.end();
while (i != i_end)
{
- if (ava->getName() == (*i) && (*i) != "")
+ if (ava->getName() == (*i) && !(*i).empty())
{
finded = true;
break;
@@ -180,7 +180,7 @@ class SocialPlayersTab final : public SocialTab
while (i != i_end)
{
- if ((*i) != "")
+ if (!(*i).empty())
updateAvatar(*i);
++i;
}
diff --git a/src/gui/widgets/tabs/socialtabbase.h b/src/gui/widgets/tabs/socialtabbase.h
index 66f51367f..9cffcae89 100644
--- a/src/gui/widgets/tabs/socialtabbase.h
+++ b/src/gui/widgets/tabs/socialtabbase.h
@@ -45,7 +45,7 @@ ENUMS_RESOURCES_MAP_MAPITEMTYPE_H
{\
std::string name;\
int level = -1;\
- if (*i == "")\
+ if ((*i).empty())\
{\
name = _("(default)");\
level = 0;\