Kaydet (Commit) 3f15bfa0 authored tarafından Julien Nabet's avatar Julien Nabet

Fix 2 bitwiseOnBoolean detected by cppcheck

üst 91a7e5ad
...@@ -1070,7 +1070,7 @@ void SfxWorkWindow::ShowChilds_Impl() ...@@ -1070,7 +1070,7 @@ void SfxWorkWindow::ShowChilds_Impl()
// the child window even in situations where no child window is // the child window even in situations where no child window is
// visible. // visible.
sal_uInt16 nFlags = pCW->aInfo.nFlags; sal_uInt16 nFlags = pCW->aInfo.nFlags;
bVisible = !bInvisible || ( bInvisible & (( nFlags & SFX_CHILDWIN_NEVERHIDE ) != 0 )); bVisible = !bInvisible || (( nFlags & SFX_CHILDWIN_NEVERHIDE ) != 0 );
} }
if ( CHILD_VISIBLE == (pCli->nVisible & CHILD_VISIBLE) && bVisible ) if ( CHILD_VISIBLE == (pCli->nVisible & CHILD_VISIBLE) && bVisible )
......
...@@ -740,7 +740,7 @@ bool SalLayout::GetOutline( SalGraphics& rSalGraphics, ...@@ -740,7 +740,7 @@ bool SalLayout::GetOutline( SalGraphics& rSalGraphics,
} }
} }
return (bAllOk & bOneOk); return (bAllOk && bOneOk);
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
......
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