Kaydet (Commit) 3cf7144e authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope in vcl/.. lstbox.cxx

üst 82e6e144
...@@ -656,7 +656,6 @@ void ListBox::Resize() ...@@ -656,7 +656,6 @@ void ListBox::Resize()
{ {
// initialize the dropdown button size with the standard scrollbar width // initialize the dropdown button size with the standard scrollbar width
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize(); long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
long nTop = 0;
long nBottom = aOutSz.Height(); long nBottom = aOutSz.Height();
// note: in case of no border, pBorder will actually be this // note: in case of no border, pBorder will actually be this
...@@ -671,6 +670,7 @@ void ListBox::Resize() ...@@ -671,6 +670,7 @@ void ListBox::Resize()
if ( GetNativeControlRegion( CTRL_LISTBOX, PART_BUTTON_DOWN, if ( GetNativeControlRegion( CTRL_LISTBOX, PART_BUTTON_DOWN,
aArea, 0, aControlValue, rtl::OUString(), aBound, aContent) ) aArea, 0, aControlValue, rtl::OUString(), aBound, aContent) )
{ {
long nTop = 0;
// convert back from border space to local coordinates // convert back from border space to local coordinates
aPoint = pBorder->ScreenToOutputPixel( OutputToScreenPixel( aPoint ) ); aPoint = pBorder->ScreenToOutputPixel( OutputToScreenPixel( aPoint ) );
aContent.Move( -aPoint.X(), -aPoint.Y() ); aContent.Move( -aPoint.X(), -aPoint.Y() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment