Skip to content

Commit

Permalink
Fix build with Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 22, 2022
1 parent b4fff03 commit ff50940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/image/image_prepare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ yi += stride;
}
}
}
return image;
return std::move(image);
}

[[nodiscard]] QImage DitherImage(const QImage &image) {
Expand Down Expand Up @@ -1150,7 +1150,7 @@ QImage Opaque(QImage &&image) {
ints += addPerLine;
}
}
return image;
return std::move(image);
}

QImage Prepare(QImage image, int w, int h, const PrepareArgs &args) {
Expand Down

0 comments on commit ff50940

Please sign in to comment.