From 337a52a41ea44570da65586403f14248042f0169 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Jun 2017 21:44:11 +0300 Subject: Use std::move in some places. --- src/gui/windows/logindialog.cpp | 3 ++- src/gui/windows/minimap.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index e99d1b68e..21af69b91 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -48,6 +48,7 @@ #include "net/updatetypeoperators.h" #include "utils/delete2.h" +#include "utils/stdmove.h" #include "debug.h" @@ -357,7 +358,7 @@ void LoginDialog::prepareUpdate() if (!str.empty() && checkPath(str)) { mLoginData->updateHost = str; - *mUpdateHost = str; + *mUpdateHost = STD_MOVE(str); } else { diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 95d606618..7f48f4a10 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -54,6 +54,7 @@ #include "utils/gettext.h" #include "utils/foreach.h" #include "utils/sdlcheckutils.h" +#include "utils/stdmove.h" #include "debug.h" @@ -190,7 +191,7 @@ void Minimap::setMap(const Map *const map) tempname = pathJoin("graphics/minimaps", map->getFilename()).append(".png"); if (VirtFs::exists(tempname)) - minimapName = tempname; + minimapName = STD_MOVE(tempname); } if (!minimapName.empty()) -- cgit v1.2.3-70-g09d2