From 616ac2c0016f3936c1e8634c134807044e7bba68 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Tue, 12 Sep 2017 11:29:35 +0200 Subject: App: std::move() optional wrapped values out of there Signed-off-by: Marcus Fritzsch --- src/app.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/app.cpp') 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); -- cgit 1.2.3-korg