Merge pull request #8357 from nextcloud/bugfix/cleanCompilationWarningOnWindows

fix(warning): avoid compilation warning by specifying type
This commit is contained in:
Matthieu Gallien 2025-06-06 13:03:59 +02:00 committed by GitHub
commit fd52d31eca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ QString createErrorMessageForPlaceholderUpdateAndCreate(const QString &path, con
for (const auto &fileComponent : fileComponents) {
if (fileComponent.startsWith(forbiddenLeadingCharacterInPath)) {
qCInfo(lcCfApiWrapper) << "Failed to create/update a placeholder for path \"" << pathFromNativeSeparators << "\" that has a leading '#'.";
return {(originalErrorMessage + QStringLiteral(": ") + QObject::tr("Paths beginning with '#' character are not supported in VFS mode."))};
return QString{originalErrorMessage + QStringLiteral(": ") + QObject::tr("Paths beginning with '#' character are not supported in VFS mode.")};
}
}
return originalErrorMessage;