summaryrefslogtreecommitdiff
path: root/vcl/source/control/tabctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 15:31:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-19 11:17:20 +0200
commitb6f199556656752f6e873b5cd9aa1f9e69a49166 (patch)
tree6bc067fbbc98d13b071acd74b4e656af27083db7 /vcl/source/control/tabctrl.cxx
parent87660c3334c5150f20f3a7dbcd8f660922a203a5 (diff)
loplugin:unusedfields
Change-Id: I7dd5fc3d53df63fd2ee2caa71586f0f5e13f187e Reviewed-on: https://gerrit.libreoffice.org/81078 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/tabctrl.cxx')
-rw-r--r--vcl/source/control/tabctrl.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index a3de38da26a7..1f32f7de8c1a 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -51,7 +51,6 @@ public:
OUString maText;
OUString maFormatText;
OUString maHelpText;
- OString maHelpId;
OString maTabName;
tools::Rectangle maRect;
sal_uInt16 mnLine;
@@ -1461,7 +1460,7 @@ void TabControl::Command( const CommandEvent& rCEvt )
aMenu->InsertItem(item.id(), item.maText, MenuItemBits::CHECKABLE | MenuItemBits::RADIOCHECK);
if (item.id() == mnCurPageId)
aMenu->CheckItem(item.id());
- aMenu->SetHelpId(item.id(), item.maHelpId);
+ aMenu->SetHelpId(item.id(), OString());
}
sal_uInt16 nId = aMenu->Execute( this, aMenuPos );
@@ -1969,15 +1968,7 @@ void TabControl::SetHelpText( sal_uInt16 nPageId, const OUString& rText )
const OUString& TabControl::GetHelpText( sal_uInt16 nPageId ) const
{
ImplTabItem* pItem = ImplGetItem( nPageId );
-
assert( pItem );
-
- if ( pItem->maHelpText.isEmpty() && !pItem->maHelpId.isEmpty() )
- {
- Help* pHelp = Application::GetHelp();
- if ( pHelp )
- pItem->maHelpText = pHelp->GetHelpText( OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_UTF8 ), this );
- }
return pItem->maHelpText;
}