Skip to content

Commit e2c7fb5

Browse files
committed
named the struct and implemented classInfo() as a member of the struct and not the typedef (this seems to be a GCC issue, it worked well on MSVC8)
1 parent a76cbba commit e2c7fb5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/PythonQtInstanceWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#include "PythonQtConversion.h"
4848
#include "PythonQtClassWrapper.h"
4949

50-
PythonQtClassInfo* PythonQtInstanceWrapper::classInfo()
50+
PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo()
5151
{
5252
// take the class info from our type object
5353
return ((PythonQtClassWrapper*)ob_type)->_classInfo;

src/PythonQtInstanceWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extern PYTHONQT_EXPORT PyTypeObject PythonQtInstanceWrapper_Type;
5959

6060
//---------------------------------------------------------------
6161
//! a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects)
62-
typedef struct {
62+
typedef struct PythonQtInstanceWrapperStruct {
6363
PyObject_HEAD
6464

6565
//! the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers

0 commit comments

Comments
 (0)