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

More loplugin:simplifybool

Change-Id: I58a6d08f0a6583b5e50ffc5b003313857dfb97ff
üst 378dd762
...@@ -223,7 +223,7 @@ bool OSectionView::IsDragResize() const ...@@ -223,7 +223,7 @@ bool OSectionView::IsDragResize() const
if (pDragMethod) if (pDragMethod)
{ {
bool bMoveOnly = pDragMethod->getMoveOnly(); bool bMoveOnly = pDragMethod->getMoveOnly();
if (bMoveOnly == false) if (!bMoveOnly)
{ {
// current marked components will be resized // current marked components will be resized
return true; return true;
......
...@@ -1239,7 +1239,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe ...@@ -1239,7 +1239,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe
Point aNewPos = _aPnt; Point aNewPos = _aPnt;
OSectionView* pInSection = getSectionRelativeToPosition(_pSection, aNewPos); OSectionView* pInSection = getSectionRelativeToPosition(_pSection, aNewPos);
if (!_bControlKeyPressed && if (!_bControlKeyPressed &&
(_pSection && ( _pSection->IsDragResize() == false ) ) && /* Not in resize mode */ _pSection && !_pSection->IsDragResize() && /* Not in resize mode */
_pSection != pInSection) _pSection != pInSection)
{ {
EndDragObj_removeInvisibleObjects(); EndDragObj_removeInvisibleObjects();
......
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