diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 3 | ||||
-rw-r--r-- | svtools/source/misc/stringtransfer.cxx | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 287b727ff53c..17da61af2333 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -1170,8 +1170,7 @@ void SvTreeListBox::StartDrag( sal_Int8, const Point& rPosPixel ) return; } - TransferDataContainer* pContainer = new TransferDataContainer; - css::uno::Reference< css::datatransfer::XTransferable > xRef( pContainer ); + rtl::Reference<TransferDataContainer> pContainer = new TransferDataContainer; nDragDropMode = NotifyStartDrag( *pContainer, pEntry ); if( nDragDropMode == DragDropMode::NONE || 0 == GetSelectionCount() ) { 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); } |