summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 10:54:35 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 10:54:35 -0300
commit3d8672d3f9209b2e099fc610d266a87f70dedcc2 (patch)
treedb99d3405844b044bd6c50bdd99e1b19768189b2
parenta9578348ff1d5e5d2dd26a97660587af041c4525 (diff)
downloadshiboken-3d8672d3f9209b2e099fc610d266a87f70dedcc2.tar.gz
shiboken-3d8672d3f9209b2e099fc610d266a87f70dedcc2.tar.xz
shiboken-3d8672d3f9209b2e099fc610d266a87f70dedcc2.zip
Marked ObjectType and ObjectModel, from the sample test lib, as explicit.
-rw-r--r--tests/libsample/objectmodel.h2
-rw-r--r--tests/libsample/objecttype.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/libsample/objectmodel.h b/tests/libsample/objectmodel.h
index b226b1f9..8c5dff72 100644
--- a/tests/libsample/objectmodel.h
+++ b/tests/libsample/objectmodel.h
@@ -29,7 +29,7 @@
class LIBSAMPLE_API ObjectModel : public ObjectType
{
public:
- ObjectModel(ObjectType* parent = 0)
+ explicit ObjectModel(ObjectType* parent = 0)
: ObjectType(parent), m_data(0)
{}
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index 1eeb4c60..a5abf706 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -51,7 +51,7 @@ class LIBSAMPLE_API ObjectType
{
public:
- ObjectType(ObjectType* parent = 0);
+ explicit ObjectType(ObjectType* parent = 0);
virtual ~ObjectType();
// factory method