diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/handle.cpp')
-rw-r--r-- | sources/shiboken6/tests/libsample/handle.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/handle.cpp b/sources/shiboken6/tests/libsample/handle.cpp new file mode 100644 index 000000000..93c2abe47 --- /dev/null +++ b/sources/shiboken6/tests/libsample/handle.cpp @@ -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 + +#include "handle.h" + +SAMPLE_HANDLE HandleHolder::createHandle() +{ + return (SAMPLE_HANDLE) new OBJ; +} + +bool HandleHolder::compare(HandleHolder *other) +{ + return other->m_handle == m_handle; +} + +bool HandleHolder::compare2(HandleHolder *other) +{ + return other->m_handle2 == m_handle2; +} |