aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-02-25 22:43:41 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-02-27 21:27:39 +0100
commit121eec233e457f561c535d090ae7be47cd8e0c40 (patch)
tree387bf5d41ef91ce3a751bf61d2dee53a01f3e44e /src
parentef2a9805f323681603b556dd10f771ef506960e0 (diff)
Tag error strings with _L1 literal operator
Fixes warnings-as-error build failures with VC++. Pick-to: 6.9 6.8 Change-Id: I61aab87d3a8ceed26763ba192b1bca52ffff906f Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmlformat/qqmlformatoptions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlformat/qqmlformatoptions.cpp b/src/qmlformat/qqmlformatoptions.cpp
index 7577581e3e..32134e3954 100644
--- a/src/qmlformat/qqmlformatoptions.cpp
+++ b/src/qmlformat/qqmlformatoptions.cpp
@@ -228,8 +228,8 @@ QQmlFormatOptions QQmlFormatOptions::buildCommandLineOptions(const QStringList &
for (const auto &file : std::as_const(files)) {
if (!QFile::exists(file)) {
- options.addError("Error: Entry \"" + file + "\" of file \"" + path
- + "\" passed to option -F could not be found.");
+ options.addError("Error: Entry \""_L1 + file + "\" of file \""_L1 + path
+ + "\" passed to option -F could not be found."_L1);
return options;
}
}
@@ -237,7 +237,7 @@ QQmlFormatOptions QQmlFormatOptions::buildCommandLineOptions(const QStringList &
const auto &args = parser.positionalArguments();
for (const auto &file : args) {
if (!QFile::exists(file)) {
- options.addError("Error: Could not find file \"" + file + "\".");
+ options.addError("Error: Could not find file \""_L1 + file + "\"."_L1);
return options;
}
}