summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/customstyle/customstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/doc/snippets/customstyle/customstyle.cpp')
-rw-r--r--src/widgets/doc/snippets/customstyle/customstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/customstyle/customstyle.cpp b/src/widgets/doc/snippets/customstyle/customstyle.cpp
index b5d44ebecd..16715929a8 100644
--- a/src/widgets/doc/snippets/customstyle/customstyle.cpp
+++ b/src/widgets/doc/snippets/customstyle/customstyle.cpp
@@ -45,7 +45,7 @@
CustomStyle::CustomStyle()
{
//! [0]
- QSpinBox *spinBox = qobject_cast<QSpinBox *>(widget);
+ const QSpinBox *spinBox = qobject_cast<const QSpinBox *>(widget);
if (spinBox) {
//! [0] //! [1]
}