mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
Fix clang compiler warnings.
[clang] Warn on unqualified calls to std::move and std::forward See: https://reviews.llvm.org/D119670
This commit is contained in:
parent
ca0f30c4c0
commit
6f715b46a7
3 changed files with 4 additions and 4 deletions
|
@ -140,11 +140,11 @@ public:
|
|||
shape->appendRect(0, 0, static_cast<float>(w), static_cast<float>(h), 0, 0);
|
||||
shape->fill(r, g, b, 255);
|
||||
|
||||
if (canvas->push(move(shape)) != tvg::Result::Success) return 1;
|
||||
if (canvas->push(std::move(shape)) != tvg::Result::Success) return 1;
|
||||
}
|
||||
|
||||
//Drawing
|
||||
canvas->push(move(picture));
|
||||
canvas->push(std::move(picture));
|
||||
canvas->draw();
|
||||
canvas->sync();
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ private:
|
|||
if (picture->load(in) != Result::Success) return false;
|
||||
|
||||
auto saver = Saver::gen();
|
||||
if (saver->save(move(picture), out) != Result::Success) return false;
|
||||
if (saver->save(std::move(picture), out) != Result::Success) return false;
|
||||
if (saver->sync() != Result::Success) return false;
|
||||
|
||||
if (Initializer::term(CanvasEngine::Sw) != Result::Success) return false;
|
||||
|
|
|
@ -149,7 +149,7 @@ public:
|
|||
mErrorMsg = "Saving initialization failed";
|
||||
return false;
|
||||
}
|
||||
if (saver->save(move(duplicate), "file.tvg", compress) != tvg::Result::Success) {
|
||||
if (saver->save(std::move(duplicate), "file.tvg", compress) != tvg::Result::Success) {
|
||||
mErrorMsg = "Tvg saving failed";
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue