From 5e9a9fef6edb636b7e6babb743541a18f25bd67f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 16 Apr 2023 12:24:19 +0200 Subject: use Corrade::Utility::move --- editor/app.cpp | 11 +++++------ editor/events.cpp | 4 +--- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'editor') diff --git a/editor/app.cpp b/editor/app.cpp index 020f39dc..f2caeaef 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -10,16 +10,15 @@ #include #include #include -#include -#include #include #include #include +#include namespace floormat { app::app(fm_settings&& opts) : - M{floormat_main::create(*this, std::move(opts))} + M{floormat_main::create(*this, Utility::move(opts))} { reset_world(); auto& w = M->world(); @@ -85,7 +84,7 @@ void app::reset_world(struct world&& w_) _character_id = 0; _render_all_z_levels = true; - auto& w = M->reset_world(std::move(w_)); + auto& w = M->reset_world(Utility::move(w_)); w.collect(true); ensure_player_character(w); update_cursor_tile(pixel); @@ -175,9 +174,9 @@ int app::run_from_argv(const int argc, const char* const* const argv) Pointer ptr; { - app application{std::move(opts)}; + app application{Utility::move(opts)}; ret = application.exec(); - ptr = std::move(application.M); + ptr = Utility::move(application.M); (void)ptr; } loader_::destroy(); diff --git a/editor/events.cpp b/editor/events.cpp index 18e3a8f6..3aa4c022 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -4,9 +4,7 @@ #include "floormat/events.hpp" #include "src/world.hpp" #include "keys.hpp" - -#include - +#include #include #include -- cgit v1.2.3