aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/protected.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/protected.h')
-rw-r--r--sources/shiboken2/tests/libsample/protected.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken2/tests/libsample/protected.h b/sources/shiboken2/tests/libsample/protected.h
index 6cdc66e2..0f4fbf29 100644
--- a/sources/shiboken2/tests/libsample/protected.h
+++ b/sources/shiboken2/tests/libsample/protected.h
@@ -50,7 +50,7 @@ protected:
inline int protectedSum(int a0, int a1) { return a0 + a1; }
inline int modifiedProtectedSum(int a0, int a1) { return a0 + a1; }
inline static const char* protectedStatic() { return "protectedStatic"; }
- inline const char* dataTypeName(void *data = 0) const { return "pointer"; }
+ inline const char* dataTypeName(void *data = nullptr) const { return "pointer"; }
inline const char* dataTypeName(int data) const { return "integer"; }
private:
@@ -130,8 +130,8 @@ public:
: protectedValueTypeProperty(Point(0, 0)),
protectedProperty(0),
protectedEnumProperty(Event::NO_EVENT),
- protectedValueTypePointerProperty(0),
- protectedObjectTypeProperty(0)
+ protectedValueTypePointerProperty(nullptr),
+ protectedObjectTypeProperty(nullptr)
{}
protected:
// This is deliberately the first member to test wrapper registration