summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlformat/qmlformat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmlformat/qmlformat.cpp b/tools/qmlformat/qmlformat.cpp
index 3aa452c21c..2e99dd3110 100644
--- a/tools/qmlformat/qmlformat.cpp
+++ b/tools/qmlformat/qmlformat.cpp
@@ -123,7 +123,8 @@ bool parseFile(const QString &filename, const Options &options)
if (options.verbose)
qWarning().noquote() << "Writing to file" << filename;
FileWriter fw;
- res = qmlFile.writeOut(filename, 2, lwOptions, &fw, checks);
+ const unsigned numberOfBackupFiles = 0;
+ res = qmlFile.writeOut(filename, numberOfBackupFiles, lwOptions, &fw, checks);
} else {
QFile out;
out.open(stdout, QIODevice::WriteOnly);