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 /sw/source/uibase/docvw/romenu.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 'sw/source/uibase/docvw/romenu.cxx')
-rw-r--r-- | sw/source/uibase/docvw/romenu.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx index 301c083220d4..a06abe1b5a1f 100644 --- a/sw/source/uibase/docvw/romenu.cxx +++ b/sw/source/uibase/docvw/romenu.cxx @@ -282,7 +282,7 @@ void SwReadOnlyPopup::Execute( vcl::Window* pWin, sal_uInt16 nId ) return; } - TransferDataContainer* pClipCntnr = nullptr; + rtl::Reference<TransferDataContainer> pClipCntnr; sal_uInt16 nExecId = USHRT_MAX; bool bFilterSet = false; @@ -351,10 +351,8 @@ void SwReadOnlyPopup::Execute( vcl::Window* pWin, sal_uInt16 nId ) if( bFilterSet ) ::LoadURL(rSh, sURL, nFilter, sTargetFrameName); - if( pClipCntnr ) + if( pClipCntnr && pClipCntnr->HasAnyData() ) { - css::uno::Reference< css::datatransfer::XTransferable > xRef( pClipCntnr ); - if( pClipCntnr->HasAnyData() ) pClipCntnr->CopyToClipboard( pWin ); } } |