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

WaE: use of logical '&&' with constant operand

A warning that reveals what surely must be coding glitches. Thanks,
Clang.

Change-Id: Ieb1e09b91a4ab63c2ab15bb4874ac82b57c174cf
üst b8d1e88e
...@@ -2474,7 +2474,7 @@ CmisPropertiesControl::CmisPropertiesControl(SfxTabPage* pParent) ...@@ -2474,7 +2474,7 @@ CmisPropertiesControl::CmisPropertiesControl(SfxTabPage* pParent)
, m_rVertScroll( m_rScrolledWindow.getVertScrollBar()) , m_rVertScroll( m_rScrolledWindow.getVertScrollBar())
{ {
m_rVertScroll.EnableDrag(); m_rVertScroll.EnableDrag();
m_rVertScroll.Show( m_rScrolledWindow.GetStyle() && WB_VSCROLL); m_rVertScroll.Show( m_rScrolledWindow.GetStyle() & WB_VSCROLL);
m_rVertScroll.SetRangeMin(0); m_rVertScroll.SetRangeMin(0);
m_rVertScroll.SetVisibleSize( 0xFFFF ); m_rVertScroll.SetVisibleSize( 0xFFFF );
...@@ -2498,9 +2498,9 @@ IMPL_LINK( CmisPropertiesControl, ScrollHdl, ScrollBar*, pScrollBar ) ...@@ -2498,9 +2498,9 @@ IMPL_LINK( CmisPropertiesControl, ScrollHdl, ScrollBar*, pScrollBar )
void CmisPropertiesControl::checkAutoVScroll() void CmisPropertiesControl::checkAutoVScroll()
{ {
WinBits nBits = m_rScrolledWindow.GetStyle(); WinBits nBits = m_rScrolledWindow.GetStyle();
if (nBits && WB_VSCROLL) if (nBits & WB_VSCROLL)
return; return;
if (nBits && WB_AUTOVSCROLL) if (nBits & WB_AUTOVSCROLL)
{ {
sal_Bool bShow = m_rVertScroll.GetRangeMax() > m_rVertScroll.GetVisibleSize(); sal_Bool bShow = m_rVertScroll.GetRangeMax() > m_rVertScroll.GetVisibleSize();
if (bShow != m_rVertScroll.IsVisible()) if (bShow != m_rVertScroll.IsVisible())
......
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