aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/handle.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/handle.h
parentffd068caf7063799e0196602e31ca7b1781c3f97 (diff)
parent75f824b13a2ef12a9a5a33db19216b4e43a72922 (diff)
Merge remote-tracking branch 'origin/5.13' into dev
Diffstat (limited to 'sources/shiboken2/tests/libsample/handle.h')
-rw-r--r--sources/shiboken2/tests/libsample/handle.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken2/tests/libsample/handle.h b/sources/shiboken2/tests/libsample/handle.h
index 400a0a3a6..824c28b9a 100644
--- a/sources/shiboken2/tests/libsample/handle.h
+++ b/sources/shiboken2/tests/libsample/handle.h
@@ -33,19 +33,19 @@
/* See http://bugs.pyside.org/show_bug.cgi?id=1105. */
namespace Foo {
- typedef unsigned long HANDLE;
+ using HANDLE = unsigned long;
}
class LIBSAMPLE_API OBJ
{
};
-typedef OBJ* HANDLE;
+using HANDLE = OBJ *;
class LIBSAMPLE_API HandleHolder
{
public:
- explicit HandleHolder(HANDLE ptr = 0) : m_handle(ptr) {}
+ explicit HandleHolder(HANDLE ptr = nullptr) : m_handle(ptr) {}
explicit HandleHolder(Foo::HANDLE val): m_handle2(val) {}
inline void set(HANDLE ptr) { HANDLE tmp; tmp = m_handle; m_handle = tmp; }
@@ -63,7 +63,7 @@ private:
};
struct LIBSAMPLE_API PrimitiveStruct {};
-typedef struct PrimitiveStruct* PrimitiveStructPtr;
+using PrimitiveStructPtr = struct PrimitiveStruct *;
struct LIBSAMPLE_API PrimitiveStructPointerHolder
{
PrimitiveStructPtr primitiveStructPtr;