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/runtime | |
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/runtime')
-rw-r--r-- | basic/source/runtime/ddectrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/ddectrl.cxx b/basic/source/runtime/ddectrl.cxx index 95be54507a8a..bb2c4c5548f1 100644 --- a/basic/source/runtime/ddectrl.cxx +++ b/basic/source/runtime/ddectrl.cxx @@ -100,7 +100,7 @@ ErrCode SbiDdeControl::Initiate( const OUString& rService, const OUString& rTopi size_t& rnHandle ) { ErrCode nErr; - std::unique_ptr<DdeConnection> pConv(new DdeConnection( rService, rTopic )); + auto pConv = std::make_unique<DdeConnection> ( rService, rTopic ); nErr = GetLastErr( pConv.get() ); if( nErr ) { |