diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-15 20:01:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-17 09:35:25 +0000 |
commit | 98818ee54e3555e2ed8fe3a2160095a1fe84b818 (patch) | |
tree | f7c6bb27e9f2f3359d13a7459cd000306d77f150 | |
parent | 68d421bdac59295bf91457def4cc041ea5c3d8d0 (diff) |
mnTabPageResId is not used anywhere, continue to skip the resource though
Change-Id: Ief4707613352b1382fb23e5914fd05f6c7618327
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 44bb42438886..d0cd3bf7c47b 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -43,7 +43,6 @@ struct ImplTabItem { sal_uInt16 mnId; - sal_uInt16 mnTabPageResId; TabPage* mpTabPage; String maText; String maFormatText; @@ -56,7 +55,7 @@ struct ImplTabItem Image maTabImage; ImplTabItem() - : mnId( 0 ), mnTabPageResId( 0 ), mpTabPage( NULL ), + : mnId( 0 ), mpTabPage( NULL ), mnLine( 0 ), mbFullVisible( sal_False ), mbEnabled( true ) {} }; @@ -1652,8 +1651,8 @@ void TabControl::InsertPage( const ResId& rResId, sal_uInt16 nPos ) // PageResID if ( nObjMask & RSC_TABCONTROLITEM_PAGERESID ) { - ImplTabItem& rItem = mpTabCtrlData->maItemList[ GetPagePos( nItemId ) ]; - rItem.mnTabPageResId = sal::static_int_cast<sal_uInt16>(ReadLongRes()); + //skip unused TabPageResId value + ReadLongRes(); } } @@ -1697,7 +1696,6 @@ void TabControl::InsertPage( sal_uInt16 nPageId, const XubString& rText, // init new page item pItem->mnId = nPageId; pItem->mpTabPage = NULL; - pItem->mnTabPageResId = 0; pItem->maText = rText; pItem->mbFullVisible = sal_False; |