clang-tidy: fix modernize-make-unique

This commit is contained in:
Simone Gaiarin 2020-02-27 07:54:28 +01:00 committed by Albert Astals Cid
parent 31e2c29ef0
commit 04e6163b8c

View file

@ -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<QSvgRenderer>( stampFile );
if ( !svgStampFile->isValid() )
{
svgStampFile.reset();