aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libother/extendsnoimplicitconversion.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libother/extendsnoimplicitconversion.h')
-rw-r--r--sources/shiboken6/tests/libother/extendsnoimplicitconversion.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libother/extendsnoimplicitconversion.h b/sources/shiboken6/tests/libother/extendsnoimplicitconversion.h
new file mode 100644
index 000000000..36d503fe8
--- /dev/null
+++ b/sources/shiboken6/tests/libother/extendsnoimplicitconversion.h
@@ -0,0 +1,21 @@
+// 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 EXTENDSNOIMPLICITCONVERSION_H
+#define EXTENDSNOIMPLICITCONVERSION_H
+
+#include "libothermacros.h"
+#include "noimplicitconversion.h"
+
+class ExtendsNoImplicitConversion
+{
+public:
+ explicit ExtendsNoImplicitConversion(int objId) : m_objId(objId) {};
+ inline int objId() const { return m_objId; }
+ inline operator NoImplicitConversion() const { return NoImplicitConversion(m_objId); }
+
+private:
+ int m_objId;
+};
+
+#endif // EXTENDSNOIMPLICITCONVERSION_H