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 /anim-crop-tool | |
parent | d2932dbdcf1ee0e646be90d9ad631ced171e012b (diff) |
use Corrade::Utility::move
Diffstat (limited to 'anim-crop-tool')
-rw-r--r-- | anim-crop-tool/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index 57af2912..65045fd4 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -10,7 +10,6 @@ #include <cmath> #include <cstring> #include <algorithm> -#include <utility> #include <tuple> #include <Corrade/Containers/Pair.h> @@ -19,6 +18,7 @@ #include <Corrade/Utility/Arguments.h> #include <Corrade/Utility/DebugStl.h> +#include <Corrade/Utility/Move.h> #include <Corrade/Utility/Path.h> #include <opencv2/core/mat.hpp> @@ -75,7 +75,7 @@ static bool load_file(anim_group& group, options& opts, anim_atlas_& atlas, Stri Error{} << "error: failed to load" << filename << "as RGBA32 image"; return cv::Mat4b{}; } - return cv::Mat4b(std::move(mat)); + return cv::Mat4b(Utility::move(mat)); ); if (mat.empty()) @@ -119,7 +119,7 @@ static bool load_file(anim_group& group, options& opts, anim_atlas_& atlas, Stri const Vector2ui dest_size_ = { (unsigned)dest_size.width, (unsigned)dest_size.height }; group.frames.push_back({ground, atlas.offset(), dest_size_}); - atlas.add_entry({&group.frames.back(), std::move(resized)}); + atlas.add_entry({&group.frames.back(), Utility::move(resized)}); return true; } @@ -223,7 +223,7 @@ static std::tuple<options, Arguments, bool> parse_cmdline(int argc, const char* if (opts.output_dir.isEmpty()) opts.output_dir = opts.input_dir; - return { std::move(opts), std::move(args), true }; + return { Utility::move(opts), Utility::move(args), true }; } [[nodiscard]] static int usage(const Arguments& args) noexcept |