Kaydet (Commit) c95e3eee authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-tidy clang-analyzer-deadcode.DeadStores

...of computing nDraw, since 04c037d8 "refactor
ScrollBar to use RenderContext" replaced call to ImplDraw(nDraw,this) with call
to Invalidate()

Change-Id: Ifb9a2494715363c35c19574e85852b488667f97e
üst da6dc61f
......@@ -135,11 +135,6 @@ void ScrollBar::dispose()
void ScrollBar::ImplUpdateRects( bool bUpdate )
{
sal_uInt16 nOldStateFlags = mnStateFlags;
Rectangle aOldPage1Rect = maPage1Rect;
Rectangle aOldPage2Rect = maPage2Rect;
Rectangle aOldThumbRect = maThumbRect;
mnStateFlags &= ~SCRBAR_STATE_BTN1_DISABLE;
mnStateFlags &= ~SCRBAR_STATE_BTN2_DISABLE;
......@@ -217,19 +212,6 @@ void ScrollBar::ImplUpdateRects( bool bUpdate )
if ( bUpdate )
{
sal_uInt16 nDraw = 0;
if ( (nOldStateFlags & SCRBAR_STATE_BTN1_DISABLE) !=
(mnStateFlags & SCRBAR_STATE_BTN1_DISABLE) )
nDraw |= SCRBAR_DRAW_BTN1;
if ( (nOldStateFlags & SCRBAR_STATE_BTN2_DISABLE) !=
(mnStateFlags & SCRBAR_STATE_BTN2_DISABLE) )
nDraw |= SCRBAR_DRAW_BTN2;
if ( aOldPage1Rect != maPage1Rect )
nDraw |= SCRBAR_DRAW_PAGE1;
if ( aOldPage2Rect != maPage2Rect )
nDraw |= SCRBAR_DRAW_PAGE2;
if ( aOldThumbRect != maThumbRect )
nDraw |= SCRBAR_DRAW_THUMB;
Invalidate();
}
}
......
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