summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:35 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:35 +0200
commit616ac2c0016f3936c1e8634c134807044e7bba68 (patch)
tree6b7bd1ecd12b91b49d514326203daeeb9d301cf7
parent8702bacd3035f9c9c7fb64b7938cafd4b7a24fd6 (diff)
App: std::move() optional wrapped values out of there
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r--src/app.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 47fb85c..596391c 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -451,7 +451,7 @@ char const *App::activate_surface(char const *drawing_name) {
if (state.sub == -1) {
if (can_split) {
if (state.main != *surface_id) {
- std::string main = *this->lookup_name(state.main);
+ std::string main = std::move(*this->lookup_name(state.main));
this->emit_syncdraw(drawing_name);
this->emit_syncdraw(main.c_str());
@@ -518,7 +518,7 @@ char const *App::deactivate_surface(char const *drawing_name) {
if (state.main == *surface_id) {
if (state.sub != -1) {
- std::string sub = *this->lookup_name(state.sub);
+ std::string sub = std::move(*this->lookup_name(state.sub));
this->emit_syncdraw(sub.c_str());
this->deactivate(*surface_id);
@@ -533,7 +533,7 @@ char const *App::deactivate_surface(char const *drawing_name) {
state.main = -1;
}
}else if (state.sub == *surface_id) {
- std::string main = *this->lookup_name(state.main);
+ std::string main = std::move(*this->lookup_name(state.main));
this->emit_syncdraw(main.c_str());
this->deactivate(*surface_id);