summaryrefslogtreecommitdiff
path: root/src/transfersavesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/transfersavesdialog.cpp')
-rw-r--r--src/transfersavesdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transfersavesdialog.cpp b/src/transfersavesdialog.cpp
index 2761ed1d..a66f05ee 100644
--- a/src/transfersavesdialog.cpp
+++ b/src/transfersavesdialog.cpp
@@ -245,7 +245,7 @@ bool TransferSavesDialog::transferCharacters(
QString const& character, char const* message, QDir const& sourceDirectory,
SaveList& saves, QDir const& destination,
const std::function<bool(const QString&, const QString&)>& method,
- char const* errmsg)
+ std::format_string<QString, QString> errmsg)
{
if (QMessageBox::question(this, tr("Confirm"), tr(message).arg(character),
QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) {
@@ -270,7 +270,7 @@ bool TransferSavesDialog::transferCharacters(
}
if (!method(sourceFile.absoluteFilePath(), destinationFile)) {
- log::error(errmsg, sourceFile.absoluteFilePath(), destinationFile);
+ log::error(errmsg, sourceFile.absoluteFilePath(), std::move(destinationFile));
}
}
}