diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-17 17:24:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-17 17:24:48 +0200 |
commit | a1467c8a526d7dda6e51d2af6a15f274feed30a1 (patch) | |
tree | 5e6ce2e10a6390803564187c298cdf8e0fde197f /svl/source/svdde | |
parent | 143b3a2f3c431b7277321471d5366e7e1e97a772 (diff) |
loplugin:useuniqueptr: svl (clang-cl)
Change-Id: Id8705c82ab87724b0542acbfe0ad165f889f267a
Diffstat (limited to 'svl/source/svdde')
-rw-r--r-- | svl/source/svdde/ddecli.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx index 5707b0c40878..d97a9cdf4fe6 100644 --- a/svl/source/svdde/ddecli.cxx +++ b/svl/source/svdde/ddecli.cxx @@ -23,7 +23,7 @@ #include <algorithm> #include "ddeimp.hxx" #include <svl/svdde.hxx> - +#include <o3tl/make_unique.hxx> #include <osl/thread.h> #include <comphelper/solarmutex.hxx> @@ -144,9 +144,9 @@ HDDEDATA CALLBACK DdeInternal::CliCallback( UINT nCode, UINT nCbType, return nRet; } -DdeConnection::DdeConnection( const OUString& rService, const OUString& rTopic ) +DdeConnection::DdeConnection( const OUString& rService, const OUString& rTopic ): + pImp(o3tl::make_unique<DdeImp>()) { - pImp = new DdeImp; pImp->nStatus = DMLERR_NO_ERROR; pImp->hConv = nullptr; @@ -206,7 +206,6 @@ DdeConnection::~DdeConnection() ImpDeinitInstData(); } } - delete pImp; } bool DdeConnection::IsConnected() |