diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-17 09:12:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-17 08:59:30 +0100 |
commit | 20ff62d319d9a8195a59d5b27ccc52d9000992c0 (patch) | |
tree | f32c6393778d7718e1cdda7f2281f8dfbf4dd591 /vcl | |
parent | 8eb2d2972583b909a249f5b0f22a9b1fbf533d24 (diff) |
loplugin:expandablemethods
Change-Id: Ifc269d9996928085a3ab78033788465b4f029368
Reviewed-on: https://gerrit.libreoffice.org/85255
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/textview.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 2eaa1b2f598c..6d5921662598 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -80,7 +80,7 @@ css::uno::Any TETextDataObject::getTransferData( const css::datatransfer::DataFl SotClipboardFormatId nT = SotExchange::GetFormat( rFlavor ); if ( nT == SotClipboardFormatId::STRING ) { - aAny <<= GetText(); + aAny <<= maText; } else if ( nT == SotClipboardFormatId::HTML ) { diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 1d25c089e976..38ac1bf7f1fa 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -216,7 +216,7 @@ void Menu::dispose() mpLayoutData.reset(); // Native-support: destroy SalMenu - ImplClearSalMenu(); + mpSalMenu.reset(); pStartedFrom.clear(); pWindow.clear(); @@ -2298,11 +2298,6 @@ OUString Menu::GetAccessibleName( sal_uInt16 nItemId ) const return OUString(); } -void Menu::ImplClearSalMenu() -{ - mpSalMenu.reset(); -} - void Menu::GetSystemMenuData( SystemMenuData* pData ) const { Menu* pMenu = const_cast<Menu*>(this); |