diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-17 20:07:57 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:29 -0300 |
commit | 58665363412d5f43704d69440082fd8e87a23086 (patch) | |
tree | 3bd1a901feb74c37c9b1035a698b1b4bf7d771f8 /tests/libsample/handle.h | |
parent | 074f99759150eaa5e4adf8d501396a67fd370404 (diff) |
Modifies HANDLE test to fix win32 linking problem.
Diffstat (limited to 'tests/libsample/handle.h')
-rw-r--r-- | tests/libsample/handle.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/libsample/handle.h b/tests/libsample/handle.h index d6651cdd1..c75f3e46a 100644 --- a/tests/libsample/handle.h +++ b/tests/libsample/handle.h @@ -1,7 +1,7 @@ /* * This file is part of the Shiboken Python Binding Generator project. * - * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). + * Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies). * * Contact: PySide team <contact@pyside.org> * @@ -25,7 +25,7 @@ #include "libsamplemacros.h" -class OBJ +class LIBSAMPLE_API OBJ { }; @@ -38,20 +38,13 @@ public: void set(HANDLE ptr) { m_handle = m_handle; } HANDLE get() { return m_handle; } - static HANDLE createHandle() - { - return (HANDLE) new OBJ; - } - - bool compare(HandleHolder* other) - { - return other->m_handle == m_handle; - } + static HANDLE createHandle(); + bool compare(HandleHolder* other); private: HANDLE m_handle; }; -struct PrimitiveStruct {}; +struct LIBSAMPLE_API PrimitiveStruct {}; typedef struct PrimitiveStruct* PrimitiveStructPtr; struct LIBSAMPLE_API PrimitiveStructPointerHolder { |