@@ -144,7 +144,7 @@ template<class T1, class T2> int PythonQtUpcastingOffset() {
144144typedef QObject* PythonQtQObjectCreatorFunctionCB ();
145145
146146// ! helper template to create a derived QObject class
147- template <class T > QObject* PythonQtCreateObject () { return new T (); };
147+ template <class T > QObject* PythonQtCreateObject () { return new T (); }
148148
149149// ! Helper define to convert from QString to Python C-API
150150#ifdef PY3K
@@ -260,7 +260,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
260260
261261 // ! Overwrite default handling of stdin using a custom callback. It internally backup
262262 // ! the original 'sys.stdin' into 'sys.pythonqt_original_stdin'
263- void setRedirectStdInCallback (PythonQtInputChangedCB* callback, void * callbackData = 0 );
263+ void setRedirectStdInCallback (PythonQtInputChangedCB* callback, void * callbackData = nullptr );
264264
265265 // ! Enable or disable stdin custom callback. It resets 'sys.stdin' using either 'sys.pythonqt_stdin'
266266 // ! or 'sys.pythonqt_original_stdin'
@@ -319,7 +319,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
319319 // ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
320320 /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
321321 you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
322- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
322+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
323323
324324 // ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
325325 // ! (ownership of wrapper is passed to PythonQt)
@@ -329,7 +329,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
329329 All slots that take a pointer to typeName as the first argument will be callable from Python on
330330 a variant object that contains such a type.
331331 */
332- void registerCPPClass (const char * typeName, const char * parentTypeName = NULL , const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
332+ void registerCPPClass (const char * typeName, const char * parentTypeName = nullptr , const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
333333
334334 // ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
335335 // ! and it will register the classes when it first sees a pointer to such a derived class
@@ -365,7 +365,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
365365
366366 // ! evaluates the given script code and returns the result value
367367 QVariant evalScript (PyObject* object, const QString& script, int start = Py_file_input);
368-
368+
369369 // ! evaluates the given script code in context of given globals and locals and returns the result value
370370 QVariant evalScript (const QString& script, PyObject* globals, PyObject* locals, int start);
371371
@@ -536,7 +536,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
536536 // ! the default importer allows to import files from anywhere QFile can read from,
537537 // ! including the Qt resource system using ":". Keep in mind that you need to extend
538538 // ! "sys.path" with ":" to be able to import from the Qt resources.
539- void installDefaultImporter () { setImporter (NULL ); }
539+ void installDefaultImporter () { setImporter (nullptr ); }
540540
541541 // ! set paths that the importer should ignore
542542 void setImporterIgnorePaths (const QStringList& paths);
@@ -719,7 +719,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
719719 // ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
720720 /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
721721 you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
722- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL , PyObject* module = NULL , int typeSlots = 0 );
722+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr , PyObject* module = nullptr , int typeSlots = 0 );
723723
724724 // ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
725725 // ! (ownership of wrapper is passed to PythonQt)
@@ -729,7 +729,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
729729 All slots that take a pointer to typeName as the first argument will be callable from Python on
730730 a variant object that contains such a type.
731731 */
732- void registerCPPClass (const char * typeName, const char * parentTypeName = NULL , const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL , PyObject* module = NULL , int typeSlots = 0 );
732+ void registerCPPClass (const char * typeName, const char * parentTypeName = nullptr , const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr , PyObject* module = nullptr , int typeSlots = 0 );
733733
734734 // ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
735735 // ! and it will register the classes when it first sees a pointer to such a derived class
@@ -748,7 +748,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
748748 static PyObject* createNewPythonQtEnumWrapper (const char * enumName, PyObject* parentObject);
749749
750750 // ! helper method that creates a PythonQtInstanceWrapper object and registers it in the object map
751- PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = NULL );
751+ PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = nullptr );
752752
753753 // ! get the class info for a meta object (if available)
754754 PythonQtClassInfo* getClassInfo (const QMetaObject* meta);
@@ -787,13 +787,13 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
787787 // ! get the dynamic meta object for the given wrapper. It will contain the signals/slots that have been added in Python
788788 const QMetaObject* getDynamicMetaObject (PythonQtInstanceWrapper* wrapper, const QMetaObject* prototypeMetaObject);
789789
790- // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
790+ // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
791791 const QMetaObject* setupDynamicMetaObjectChain (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
792792
793793 // ! builds and returns the dynamic meta object for the given type, derived from prototypeMetaObject.
794794 const QMetaObject* buildDynamicMetaObject (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
795795
796- // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
796+ // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
797797 int handleMetaCall (QObject* object, PythonQtInstanceWrapper* wrapper, QMetaObject::Call call, int id, void ** args);
798798
799799 // ! calls the given method on Python function with same name.
@@ -804,7 +804,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
804804 void setupSharedLibrarySuffixes ();
805805
806806 // ! create a new pythonqt class wrapper and place it in the pythonqt module
807- void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = NULL );
807+ void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = nullptr );
808808
809809 // ! get/create new package module (the returned object is a borrowed reference)
810810 PyObject* packageByName (const char * name);
0 commit comments