Codechange: use std::move when appropriate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user