summaryrefslogtreecommitdiffstats
path: root/tests/manual/diaglib/qwindowdump.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-07-01 10:21:37 +0200
committerLiang Qi <liang.qi@qt.io>2019-07-01 19:20:20 +0200
commit57fccd6f2156e097fb902789a61731905487c543 (patch)
treed0114319e7016538d0ca4ffca2e77beb312b38e5 /tests/manual/diaglib/qwindowdump.cpp
parent8f4baa3a223ad6f12101d5c4c10756a98d340ae6 (diff)
parentd25c3227299a6a281db37e68e45f0b02db3f5297 (diff)
Merge "Merge remote-tracking branch 'origin/5.13' into dev"
Diffstat (limited to 'tests/manual/diaglib/qwindowdump.cpp')
-rw-r--r--tests/manual/diaglib/qwindowdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/diaglib/qwindowdump.cpp b/tests/manual/diaglib/qwindowdump.cpp
index 0e613753ef..381b683359 100644
--- a/tests/manual/diaglib/qwindowdump.cpp
+++ b/tests/manual/diaglib/qwindowdump.cpp
@@ -73,7 +73,7 @@ if ((type & typeConstant) == typeConstant) \
if (flags & flagConstant) \
s << ' ' << #flagConstant;
-void formatWindowFlags(QTextStream &str, const Qt::WindowFlags flags)
+void formatWindowFlags(QTextStream &str, Qt::WindowFlags flags)
{
str << showbase << hex << unsigned(flags) << dec << noshowbase;
const Qt::WindowFlags windowType = flags & Qt::WindowType_Mask;
@@ -158,7 +158,7 @@ void formatWindow(QTextStream &str, const QWindow *w, FormatWindowOptions option
}
static void dumpWindowRecursion(QTextStream &str, const QWindow *w,
- FormatWindowOptions options = 0, int depth = 0)
+ FormatWindowOptions options = {}, int depth = 0)
{
indentStream(str, 2 * depth);
formatWindow(str, w, options);