Kaydet (Commit) c005d07d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: implicit conversion (IntegralCast) from bool to 'sal_uInt16'

Change-Id: If6c41795a4015eb6bdd6bf785dd5ea6f7069e76b
üst bf470dcd
...@@ -1489,7 +1489,7 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease ) ...@@ -1489,7 +1489,7 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease )
if ( nPos != mnCurPos ) if ( nPos != mnCurPos )
{ {
mnCurPos = nPos; mnCurPos = nPos;
ImplDrawItem( mnCurPos, true ); ImplDrawItem( mnCurPos, 1 );
Flush(); Flush();
} }
} }
...@@ -1497,7 +1497,7 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease ) ...@@ -1497,7 +1497,7 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease )
{ {
if ( nPos == mnCurPos ) if ( nPos == mnCurPos )
{ {
ImplDrawItem( mnCurPos, false ); ImplDrawItem( mnCurPos, 0 );
Flush(); Flush();
mnCurPos = TOOLBOX_ITEM_NOTFOUND; mnCurPos = TOOLBOX_ITEM_NOTFOUND;
} }
...@@ -1799,7 +1799,7 @@ void ToolBox::ImplFillLayoutData() const ...@@ -1799,7 +1799,7 @@ void ToolBox::ImplFillLayoutData() const
// only draw, if the rectangle is within PaintRectangle // only draw, if the rectangle is within PaintRectangle
if ( !pItem->maRect.IsEmpty() ) if ( !pItem->maRect.IsEmpty() )
const_cast<ToolBox*>(this)->ImplDrawItem( i, false, false, true ); const_cast<ToolBox*>(this)->ImplDrawItem( i, 0, false, true );
} }
} }
......
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