aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/photon.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-03 08:24:42 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-03 08:24:47 +0200
commit67d635fe2cc2c89c30486a2e26dea4106a9d9c16 (patch)
treeb26f1bb7a9639f2b2a875c0cb2b937858b700add /sources/shiboken2/tests/libsample/photon.h
parentffd068caf7063799e0196602e31ca7b1781c3f97 (diff)
parent75f824b13a2ef12a9a5a33db19216b4e43a72922 (diff)
Merge remote-tracking branch 'origin/5.13' into dev
Diffstat (limited to 'sources/shiboken2/tests/libsample/photon.h')
-rw-r--r--sources/shiboken2/tests/libsample/photon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken2/tests/libsample/photon.h b/sources/shiboken2/tests/libsample/photon.h
index 2a32d511a..1dcb4f83e 100644
--- a/sources/shiboken2/tests/libsample/photon.h
+++ b/sources/shiboken2/tests/libsample/photon.h
@@ -93,8 +93,8 @@ template class LIBSAMPLE_API TemplateBase<IdentityType>;
template class LIBSAMPLE_API TemplateBase<DuplicatorType>;
#endif
-typedef TemplateBase<IdentityType> ValueIdentity;
-typedef TemplateBase<DuplicatorType> ValueDuplicator;
+using ValueIdentity = TemplateBase<IdentityType>;
+using ValueDuplicator = TemplateBase<DuplicatorType>;
LIBSAMPLE_API int callCalculateForValueDuplicatorPointer(ValueDuplicator* value);
LIBSAMPLE_API int callCalculateForValueDuplicatorReference(ValueDuplicator& value);
@@ -116,7 +116,7 @@ LIBSAMPLE_API int countValueDuplicators(const std::list<TemplateBase<DuplicatorT
class Pointer
{
public:
- Pointer() PHOTON_NOEXCEPT : px(0) {}
+ Pointer() PHOTON_NOEXCEPT : px(nullptr) {}
Pointer(int* p) : px(p) {}
void reset() PHOTON_NOEXCEPT { Pointer().swap(*this); }