Drawing: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:11:05 +01:00
parent 2c229d3bc0
commit 46117f0ae1
17 changed files with 39 additions and 39 deletions

View File

@@ -89,7 +89,7 @@ private:
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
QString fileName = QString::fromUtf8(EncodedName.c_str());
// Displaying the image in a view
DrawingView* view = new DrawingView(0, Gui::getMainWindow());
DrawingView* view = new DrawingView(nullptr, Gui::getMainWindow());
view->load(fileName);
view->setWindowIcon(Gui::BitmapFactory().pixmap("actions/drawing-landscape"));
QFileInfo fi(fileName);
@@ -117,7 +117,7 @@ private:
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
QString fileName = QString::fromUtf8(EncodedName.c_str());
// Displaying the image in a view
DrawingView* view = new DrawingView(0, Gui::getMainWindow());
DrawingView* view = new DrawingView(nullptr, Gui::getMainWindow());
view->load(fileName);
view->setWindowIcon(Gui::BitmapFactory().pixmap("actions/drawing-landscape"));
QFileInfo fi(fileName);