summaryrefslogtreecommitdiffstats
path: root/src/designer/src/designer/qdesigner_formwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/designer/qdesigner_formwindow.cpp')
-rw-r--r--src/designer/src/designer/qdesigner_formwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/designer/qdesigner_formwindow.cpp b/src/designer/src/designer/qdesigner_formwindow.cpp
index 77223e416..19c79e52d 100644
--- a/src/designer/src/designer/qdesigner_formwindow.cpp
+++ b/src/designer/src/designer/qdesigner_formwindow.cpp
@@ -173,7 +173,7 @@ int QDesignerFormWindow::getNumberOfUntitledWindows() const
if (maxUntitled == 0)
++maxUntitled;
if (match.lastCapturedIndex() >= 2) {
- const QStringRef numberCapture = match.capturedRef(2);
+ const auto numberCapture = match.capturedRef(2);
if (!numberCapture.isEmpty())
maxUntitled = qMax(numberCapture.toInt(), maxUntitled);
}