From 6ab83f201d80151a9a7ee22dec412e1c014c4063 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Nov 2018 08:51:27 +0200 Subject: loplugin:singlevalfields in vcl Change-Id: I71367548ae15ef78f9860bab9bb05c96b82eb54a Reviewed-on: https://gerrit.libreoffice.org/63275 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/control/tabctrl.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vcl/source/control/tabctrl.cxx') diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index e0b38b2549d8..ea022457025b 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -93,7 +93,6 @@ void TabControl::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnLastWidth = 0; mnLastHeight = 0; - mnMaxPageWidth = 0; mnActPageId = 0; mnCurPageId = 0; mbFormat = true; @@ -383,8 +382,6 @@ bool TabControl::ImplPlaceTabs( long nWidth ) //aBreakIndexes will contain the indexes of the last tab on each row std::deque aBreakIndexes(MinimumRaggednessWrap::GetEndOfLineIndexes(aWidths, nMaxWidth - nOffsetX - 2)); - if ( (mnMaxPageWidth > 0) && (mnMaxPageWidth < nMaxWidth) ) - nMaxWidth = mnMaxPageWidth; nMaxWidth -= GetItemsOffset().X(); long nX = nOffsetX; @@ -2373,8 +2370,6 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( long nWidth ) aWidths.push_back(0); } - if ( (mnMaxPageWidth > 0) && (mnMaxPageWidth < nMaxWidth) ) - nMaxWidth = mnMaxPageWidth; nMaxWidth -= GetItemsOffset().X(); long nX = nOffsetX; -- cgit