summaryrefslogtreecommitdiff
path: root/basic/source/comp/loops.cxx
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2020-11-05 18:14:34 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-05 20:39:26 +0100
commit8ad514c6653c063f487ad40b4dbcd57a86e78e41 (patch)
treef7b363607b91ec14a3508dcf8c2601c7d47a644f /basic/source/comp/loops.cxx
parentac6df04b5c5a7c227fec3b8897c79be5e99cbe01 (diff)
BASIC : use std::make_unique instead of std::unique_ptr ( new ... )
Change-Id: Ic907f4711685539b6a89411e704845617cc5f04d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105375 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/comp/loops.cxx')
-rw-r--r--basic/source/comp/loops.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/comp/loops.cxx b/basic/source/comp/loops.cxx
index 2d174efa2a4a..07aac44943a6 100644
--- a/basic/source/comp/loops.cxx
+++ b/basic/source/comp/loops.cxx
@@ -67,7 +67,7 @@ void SbiParser::If()
aGen.BackChain( nEndLbl );
aGen.Statement();
- std::unique_ptr<SbiExpression> pCond(new SbiExpression( this ));
+ auto pCond = std::make_unique<SbiExpression>( this );
pCond->Gen();
nEndLbl = aGen.Gen( SbiOpcode::JUMPF_, 0 );
pCond.reset();