summaryrefslogtreecommitdiffstats
path: root/examples/widgets/animation/sub-attaq/boat_p.h
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-09-15 13:46:14 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-17 22:14:25 +0200
commit58e2b9c01b31cef8a0fa263de3d984c22f1d7ca7 (patch)
tree4d554a177cd60fee123f88744fad7d5953429618 /examples/widgets/animation/sub-attaq/boat_p.h
parent89b12da2efff35915a38d608279cd3a5e7578c35 (diff)
examples: Mark ctor's as explicit
Make C++ class constructors that can be used with only one required argument 'explicit' to minimize wrong use of the class. Change-Id: Ida9f9c2f0c8608c35b0137b2512a6747afd69515 Reviewed-by: Mitch Curtis <mitch.curtis@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/widgets/animation/sub-attaq/boat_p.h')
-rw-r--r--examples/widgets/animation/sub-attaq/boat_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/widgets/animation/sub-attaq/boat_p.h b/examples/widgets/animation/sub-attaq/boat_p.h
index 38be985777..03f7df2835 100644
--- a/examples/widgets/animation/sub-attaq/boat_p.h
+++ b/examples/widgets/animation/sub-attaq/boat_p.h
@@ -139,7 +139,7 @@ private:
class MoveStateRight : public QState
{
public:
- MoveStateRight(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
+ explicit MoveStateRight(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
{
}
protected:
@@ -156,7 +156,7 @@ private:
class MoveStateLeft : public QState
{
public:
- MoveStateLeft(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
+ explicit MoveStateLeft(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
{
}
protected:
@@ -173,7 +173,7 @@ private:
class StopState : public QState
{
public:
- StopState(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
+ explicit StopState(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
{
}
protected:
@@ -191,7 +191,7 @@ private:
class LaunchStateRight : public QState
{
public:
- LaunchStateRight(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
+ explicit LaunchStateRight(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
{
}
protected:
@@ -212,7 +212,7 @@ private:
class LaunchStateLeft : public QState
{
public:
- LaunchStateLeft(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
+ explicit LaunchStateLeft(Boat *boat,QState *parent = 0) : QState(parent), boat(boat)
{
}
protected: