diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-11 15:40:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-12 09:56:01 +0200 |
commit | 389da66dfc96d06c407bff156c4ea21e940c5e06 (patch) | |
tree | 2d1ebce6bdb2d952700ed5aaeb808289e9f72a7d /svtools/source/misc/stringtransfer.cxx | |
parent | a651dbcfca9e198b5c2561076961504586bc6bea (diff) |
remove unused uno::Reference vars
found by temporarily marking Reference as SAL_WARN_UNUSED.
Change-Id: I18809b62654467f890016adcc92576980ced393b
Reviewed-on: https://gerrit.libreoffice.org/37511
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc/stringtransfer.cxx')
-rw-r--r-- | svtools/source/misc/stringtransfer.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/misc/stringtransfer.cxx b/svtools/source/misc/stringtransfer.cxx index c412281b4ef4..215157020af6 100644 --- a/svtools/source/misc/stringtransfer.cxx +++ b/svtools/source/misc/stringtransfer.cxx @@ -19,6 +19,7 @@ #include <sal/config.h> +#include <rtl/ref.hxx> #include <sot/exchange.hxx> #include <svtools/stringtransfer.hxx> @@ -62,8 +63,7 @@ namespace svt void OStringTransfer::CopyString( const OUString& _rContent, vcl::Window* _pWindow ) { - OStringTransferable* pTransferable = new OStringTransferable( _rContent ); - Reference< XTransferable > xTransfer = pTransferable; + rtl::Reference<OStringTransferable> pTransferable = new OStringTransferable( _rContent ); pTransferable->CopyToClipboard( _pWindow ); } @@ -94,8 +94,7 @@ namespace svt void OStringTransfer::StartStringDrag( const OUString& _rContent, vcl::Window* _pWindow, sal_Int8 _nDragSourceActions ) { - OStringTransferable* pTransferable = new OStringTransferable( _rContent ); - Reference< XTransferable > xTransfer = pTransferable; + rtl::Reference<OStringTransferable> pTransferable = new OStringTransferable( _rContent ); pTransferable->StartDrag(_pWindow, _nDragSourceActions); } |