diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-16 12:24:19 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-16 13:44:15 +0200 |
| commit | 5e9a9fef6edb636b7e6babb743541a18f25bd67f (patch) | |
| tree | 0ffef80b2781498a80a8ddcf6d20c9cede749239 /editor | |
| parent | d2932dbdcf1ee0e646be90d9ad631ced171e012b (diff) | |
use Corrade::Utility::move
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/app.cpp | 11 | ||||
| -rw-r--r-- | editor/events.cpp | 4 |
2 files changed, 6 insertions, 9 deletions
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 <cerrno> #include <cstdlib> #include <cstring> -#include <array> -#include <utility> #include <algorithm> #include <Corrade/Containers/StringIterable.h> #include <Corrade/Utility/Arguments.h> +#include <Corrade/Utility/Move.h> 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<floormat_main> 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 <utility> - +#include <tuple> #include <Magnum/Platform/Sdl2Application.h> #include <Magnum/ImGuiIntegration/Context.hpp> |
