Commit d2d40a3f authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use nullptr

parent 6fe3d8c9
......@@ -55,7 +55,7 @@ SvgPart::SvgPart(QWidget* parentWidget, QObject* parent, const QVariantList&)
mView = new QGraphicsView(mScene, parentWidget);
mView->setFrameStyle(QFrame::NoFrame);
mView->setDragMode(QGraphicsView::ScrollHandDrag);
mItem = 0;
mItem = nullptr;
setWidget(mView);
KStandardAction::actualSize(this, SLOT(zoomActualSize()), actionCollection());
......@@ -80,7 +80,7 @@ bool SvgPart::openFile()
bool SvgPart::closeUrl()
{
delete mItem;
mItem = 0;
mItem = nullptr;
return KParts::ReadOnlyPart::closeUrl();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment