clang-tidy: fix modernize-make-unique

remotes/origin/work/2004_421508
Simone Gaiarin 6 years ago committed by Albert Astals Cid
parent 31e2c29ef0
commit 04e6163b8c
  1. 2
      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<QSvgRenderer>( stampFile );
if ( !svgStampFile->isValid() )
{
svgStampFile.reset();

Loading…
Cancel
Save