diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2020-11-05 18:14:34 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-05 20:39:26 +0100 |
commit | 8ad514c6653c063f487ad40b4dbcd57a86e78e41 (patch) | |
tree | f7b363607b91ec14a3508dcf8c2601c7d47a644f /basic/source/comp/loops.cxx | |
parent | ac6df04b5c5a7c227fec3b8897c79be5e99cbe01 (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.cxx | 2 |
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(); |