mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
clang-tidy: fix modernize-make-unique
This commit is contained in:
parent
31e2c29ef0
commit
04e6163b8c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue