@@ -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'
@@ -331,7 +331,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
331331 // ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
332332 /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
333333 you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
334- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
334+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
335335
336336 // ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
337337 // ! (ownership of wrapper is passed to PythonQt)
@@ -341,7 +341,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
341341 All slots that take a pointer to typeName as the first argument will be callable from Python on
342342 a variant object that contains such a type.
343343 */
344- void registerCPPClass (const char * typeName, const char * parentTypeName = NULL , const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
344+ void registerCPPClass (const char * typeName, const char * parentTypeName = nullptr , const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
345345
346346 // ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
347347 // ! and it will register the classes when it first sees a pointer to such a derived class
@@ -377,7 +377,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
377377
378378 // ! evaluates the given script code and returns the result value
379379 QVariant evalScript (PyObject* object, const QString& script, int start = Py_file_input);
380-
380+
381381 // ! evaluates the given script code in context of given globals and locals and returns the result value
382382 QVariant evalScript (const QString& script, PyObject* globals, PyObject* locals, int start);
383383
@@ -548,7 +548,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
548548 // ! the default importer allows to import files from anywhere QFile can read from,
549549 // ! including the Qt resource system using ":". Keep in mind that you need to extend
550550 // ! "sys.path" with ":" to be able to import from the Qt resources.
551- void installDefaultImporter () { setImporter (NULL ); }
551+ void installDefaultImporter () { setImporter (nullptr ); }
552552
553553 // ! set paths that the importer should ignore
554554 void setImporterIgnorePaths (const QStringList& paths);
@@ -731,7 +731,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
731731 // ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
732732 /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
733733 you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
734- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL , PyObject* module = NULL , int typeSlots = 0 );
734+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr , PyObject* module = nullptr , int typeSlots = 0 );
735735
736736 // ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
737737 // ! (ownership of wrapper is passed to PythonQt)
@@ -741,7 +741,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
741741 All slots that take a pointer to typeName as the first argument will be callable from Python on
742742 a variant object that contains such a type.
743743 */
744- 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 );
744+ 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 );
745745
746746 // ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
747747 // ! and it will register the classes when it first sees a pointer to such a derived class
@@ -760,7 +760,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
760760 static PyObject* createNewPythonQtEnumWrapper (const char * enumName, PyObject* parentObject);
761761
762762 // ! helper method that creates a PythonQtInstanceWrapper object and registers it in the object map
763- PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = NULL );
763+ PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = nullptr );
764764
765765 // ! get the class info for a meta object (if available)
766766 PythonQtClassInfo* getClassInfo (const QMetaObject* meta);
@@ -799,13 +799,13 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
799799 // ! get the dynamic meta object for the given wrapper. It will contain the signals/slots that have been added in Python
800800 const QMetaObject* getDynamicMetaObject (PythonQtInstanceWrapper* wrapper, const QMetaObject* prototypeMetaObject);
801801
802- // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
802+ // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
803803 const QMetaObject* setupDynamicMetaObjectChain (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
804804
805805 // ! builds and returns the dynamic meta object for the given type, derived from prototypeMetaObject.
806806 const QMetaObject* buildDynamicMetaObject (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
807807
808- // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
808+ // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
809809 int handleMetaCall (QObject* object, PythonQtInstanceWrapper* wrapper, QMetaObject::Call call, int id, void ** args);
810810
811811 // ! calls the given method on Python function with same name.
@@ -816,7 +816,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
816816 void setupSharedLibrarySuffixes ();
817817
818818 // ! create a new pythonqt class wrapper and place it in the pythonqt module
819- void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = NULL );
819+ void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = nullptr );
820820
821821 // ! get/create new package module (the returned object is a borrowed reference)
822822 PyObject* packageByName (const char * name);
0 commit comments