Skip to content

Commit fa274d2

Browse files
committed
Make this a proper C++ struct
This fixes a warning in Visual Studio 2019 ≥16.6 in C++14/17 mode (and error in C++ 20 mode)
1 parent 58ccd53 commit fa274d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PythonQtClassWrapper.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct PythonQtDynamicClassInfo;
6363
//! a Python wrapper object for PythonQt wrapped classes
6464
//! which inherits from the Python type object to allow
6565
//! deriving of wrapped CPP classes from Python.
66-
typedef struct {
66+
struct PythonQtClassWrapper {
6767
PyHeapTypeObject _base;
6868

6969
//! the additional class information that PythonQt stores for the CPP class
@@ -73,8 +73,7 @@ typedef struct {
7373
PythonQtClassInfo* classInfo() { return _classInfo; }
7474

7575
PythonQtDynamicClassInfo* _dynamicClassInfo;
76-
77-
} PythonQtClassWrapper;
76+
};
7877

7978
//---------------------------------------------------------------
8079

0 commit comments

Comments
 (0)