Image: modernize C++11

* remove redundant void-arg
* use nullptr
* replace deprecated headers
This commit is contained in:
wmayer
2022-01-26 17:55:10 +01:00
parent 4398ae54dd
commit 8f4aa0290c
8 changed files with 14 additions and 14 deletions

View File

@@ -23,7 +23,7 @@
#include "ViewProviderImagePlane.h"
// use a different name to CreateCommand()
void CreateImageCommands(void);
void CreateImageCommands();
void loadImageResource()
{
@@ -42,7 +42,7 @@ PyMOD_INIT_FUNC(ImageGui)
{
if (!Gui::Application::Instance) {
PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
PyMOD_Return(0);
PyMOD_Return(nullptr);
}
PyObject* mod = ImageGui::initModule();