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 --- anim-crop-tool/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'anim-crop-tool') 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 #include #include -#include #include #include @@ -19,6 +18,7 @@ #include #include +#include #include #include @@ -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 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 -- cgit v1.2.3