summaryrefslogtreecommitdiffstats
path: root/examples/tools/undo/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tools/undo/document.h')
-rw-r--r--examples/tools/undo/document.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tools/undo/document.h b/examples/tools/undo/document.h
index 713094cce3..4ffbe473d0 100644
--- a/examples/tools/undo/document.h
+++ b/examples/tools/undo/document.h
@@ -52,7 +52,7 @@ class Shape
public:
enum Type { Rectangle, Circle, Triangle };
- Shape(Type type = Rectangle, const QColor &color = Qt::red, const QRect &rect = QRect());
+ explicit Shape(Type type = Rectangle, const QColor &color = Qt::red, const QRect &rect = QRect());
Type type() const;
QString name() const;