aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat/qmlformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlformat/qmlformat.cpp')
-rw-r--r--tools/qmlformat/qmlformat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlformat/qmlformat.cpp b/tools/qmlformat/qmlformat.cpp
index 9ef37f7800..e6dd518cb6 100644
--- a/tools/qmlformat/qmlformat.cpp
+++ b/tools/qmlformat/qmlformat.cpp
@@ -168,7 +168,7 @@ static bool parseFile(const QString &filename, const Options &options)
checks = WriteOutCheck::None;
}
- MutableDomItem res;
+ bool res = false;
if (options.inplace) {
if (options.verbose)
qWarning().noquote() << "Writing to file" << filename;
@@ -183,7 +183,7 @@ static bool parseFile(const QString &filename, const Options &options)
res = fileItem.writeOutForFile(ow, checks);
ow.flush();
}
- return bool(res);
+ return res;
}
Options buildCommandLineOptions(const QCoreApplication &app)