Commit 04e6163b authored by Simone Gaiarin's avatar Simone Gaiarin Committed by Albert Astals Cid
Browse files

clang-tidy: fix modernize-make-unique

parent 31e2c29e
......@@ -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();
......
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