From c72d69d4b0d28497bc6f70b085dfdf2fbc672cbb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Apr 2018 13:32:14 +0200 Subject: [PATCH] fix -Werror=shadow after commit bbf134a2b77909706492cbc41952210f89c0df71 Date: Tue Apr 24 13:36:34 2018 +0200 SvTabListBox::SetTabs, pass count explicit Change-Id: Iea41aa1c4708b6486ba9a306d3b9d02846e23d7a --- fpicker/source/office/PlacesListBox.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx index 0138f2273698..dba49d230817 100644 --- a/fpicker/source/office/PlacesListBox.cxx +++ b/fpicker/source/office/PlacesListBox.cxx @@ -25,8 +25,8 @@ PlacesListBox_Impl::PlacesListBox_Impl( PlacesListBox* pParent, const OUString& mpHeaderBar = VclPtr::Create( pParent, WB_BUTTONSTYLE | WB_BOTTOMBORDER ); mpHeaderBar->SetPosSizePixel( Point( 0, 0 ), Size( 600, 16 ) ); - long aTabs[] = { 20, 600 }; - SetTabs( SAL_N_ELEMENTS(aTabs), aTabs, MapUnit::MapPixel ); + long aTabPositions[] = { 20, 600 }; + SetTabs( SAL_N_ELEMENTS(aTabPositions), aTabPositions, MapUnit::MapPixel ); mpHeaderBar->InsertItem( COLUMN_NAME, rTitle, 600, HeaderBarItemBits::LEFT | HeaderBarItemBits::VCENTER ); Size aHeadSize = mpHeaderBar->GetSizePixel();