diff --git a/ui/guiutils.cpp b/ui/guiutils.cpp index ef675ced6..c5b1f6717 100644 --- a/ui/guiutils.cpp +++ b/ui/guiutils.cpp @@ -46,7 +46,7 @@ QSvgRenderer* GuiUtilsHelper::svgStamps() const QString stampFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("okular/pics/stamps.svg") ); if ( !stampFile.isEmpty() ) { - svgStampFile.reset( new QSvgRenderer( stampFile ) ); + svgStampFile = std::make_unique( stampFile ); if ( !svgStampFile->isValid() ) { svgStampFile.reset();