From 39029943851dfc318fabb95357e00b81d2735547 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Dec 2012 03:08:37 +0300 Subject: Improve empty strings manipulation. --- src/gui/whoisonline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/whoisonline.cpp') diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 4dd1df2b6..f0b0ab538 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -365,7 +365,7 @@ void WhoIsOnline::loadWebList() else { nick = lineStr; - lineStr = ""; + lineStr.clear(); } trim(nick); @@ -736,7 +736,7 @@ void WhoIsOnline::optionChanged(const std::string &name) void OnlinePlayer::setText(std::string color) { - mText = ""; + mText.clear(); if (mStatus != 255 && actorSpriteManager) { -- cgit v1.2.3-70-g09d2