Desktop: Fix Finding Reported by Coverity.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
=Michael Keller 2024-05-18 09:24:37 +12:00 committed by bstoeger
parent a66bdb1bf5
commit c3d807802d

View file

@ -1007,7 +1007,7 @@ bool MainWindow::askSaveChanges()
tr("Do you want to save the changes that you made in the file %1?").arg(displayedFilename(existing_filename)) :
tr("Do you want to save the changes that you made in the data file?");
int ret = saveChangesConfirmationBox(message);
int ret = saveChangesConfirmationBox(std::move(message));
switch (ret) {
case QMessageBox::Save:
file_save();