summaryrefslogtreecommitdiff
path: root/src/gui/widgets/staticbrowserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-29 21:44:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-29 21:44:11 +0300
commit337a52a41ea44570da65586403f14248042f0169 (patch)
tree27f58dd5f9c9f50310c94c649595a9e7f8e00455 /src/gui/widgets/staticbrowserbox.cpp
parent36c45ae7d8d2577a900ec266b64448d4b488013d (diff)
downloadplus-337a52a41ea44570da65586403f14248042f0169.tar.gz
plus-337a52a41ea44570da65586403f14248042f0169.tar.bz2
plus-337a52a41ea44570da65586403f14248042f0169.tar.xz
plus-337a52a41ea44570da65586403f14248042f0169.zip
Use std::move in some places.
Diffstat (limited to 'src/gui/widgets/staticbrowserbox.cpp')
-rw-r--r--src/gui/widgets/staticbrowserbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/staticbrowserbox.cpp b/src/gui/widgets/staticbrowserbox.cpp
index ef51660c0..7be4b780e 100644
--- a/src/gui/widgets/staticbrowserbox.cpp
+++ b/src/gui/widgets/staticbrowserbox.cpp
@@ -46,6 +46,7 @@
#include "utils/browserboxtools.h"
#include "utils/checkutils.h"
#include "utils/foreach.h"
+#include "utils/stdmove.h"
#include "utils/stringutils.h"
#include "utils/translation/podict.h"
@@ -256,7 +257,7 @@ void StaticBrowserBox::addRow(const std::string &row,
mTextRowLinksCount.push_back(linksCount);
}
- std::string plain = newRow;
+ std::string plain = STD_MOVE(newRow);
// workaround if used only one string started from bold
// width for this string can be calculated wrong
// this workaround fix width if string start from bold sign