aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/null.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/null.h')
-rw-r--r--sources/shiboken6/tests/libsample/null.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/null.h b/sources/shiboken6/tests/libsample/null.h
new file mode 100644
index 000000000..945a89fa2
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/null.h
@@ -0,0 +1,19 @@
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef NULL_H
+#define NULL_H
+
+class Null
+{
+public:
+ Null(bool value) : m_isNull(value) {}
+ Null() = default;
+
+ void setIsNull(bool flag) { m_isNull = flag; }
+
+private:
+ bool m_isNull = false;
+};
+
+#endif // NULL_H