summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-28 02:16:01 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-28 02:16:01 +0300
commitb3a004abb54a6eecdf8a91d6cbdded74dbcafb92 (patch)
tree472f59f63c31617e550391be5c480029437ea1ed /src
parentb02e3369653bddc4f4af677de16dac131945e7b7 (diff)
downloadmv-b3a004abb54a6eecdf8a91d6cbdded74dbcafb92.tar.gz
mv-b3a004abb54a6eecdf8a91d6cbdded74dbcafb92.tar.bz2
mv-b3a004abb54a6eecdf8a91d6cbdded74dbcafb92.tar.xz
mv-b3a004abb54a6eecdf8a91d6cbdded74dbcafb92.zip
Fix string allocation in whoisonline.cpp
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/whoisonline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 61e2bc21a..86f5cd2fb 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -877,7 +877,7 @@ void OnlinePlayer::setText(std::string color)
#ifdef TMWA_SUPPORT
if (mGroup != -1 && GroupDb::getShowBadge(mGroup))
{
- const std::string name = GroupDb::getName(mGroup);
+ const std::string &name = GroupDb::getName(mGroup);
mText.append(strprintf("(%s) ", name.c_str()));
}
else