Codechange: use std::move when appropriate

This commit is contained in:
Rubidium
2025-03-08 20:33:08 +01:00
committed by rubidium42
parent 05ce0828c0
commit 754311a779
37 changed files with 83 additions and 83 deletions

View File

@@ -379,7 +379,7 @@ void MakeScreenshotWithConfirm(ScreenshotType t)
* @param height the height of the screenshot of, or 0 for current viewport height (only works for SC_ZOOMEDIN and SC_DEFAULTZOOM).
* @return true iff the screenshot was made successfully
*/
static bool RealMakeScreenshot(ScreenshotType t, std::string name, uint32_t width, uint32_t height)
static bool RealMakeScreenshot(ScreenshotType t, const std::string &name, uint32_t width, uint32_t height)
{
if (t == SC_VIEWPORT) {
/* First draw the dirty parts of the screen and only then change the name