diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:18:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:18:20 +0100 |
commit | 2eb991561c3ca6751bfe3bd674de28d7677e993d (patch) | |
tree | 6552f51b9c607b55ab11195d776c842390629742 /sw/source/uibase/ribbar/conarc.cxx | |
parent | 1c717c06c486155bf48aef3ed5e5c140f4205e6e (diff) |
Rewrite some (trivial) assignments inside if/while conditions: sw
Change-Id: I288c5125a1316828df74f73aeaac85392638ffd8
Diffstat (limited to 'sw/source/uibase/ribbar/conarc.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/conarc.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/ribbar/conarc.cxx b/sw/source/uibase/ribbar/conarc.cxx index 33b4a2cade5a..4373c677ecac 100644 --- a/sw/source/uibase/ribbar/conarc.cxx +++ b/sw/source/uibase/ribbar/conarc.cxx @@ -32,9 +32,8 @@ ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt ) { - bool bReturn; - - if ((bReturn = SwDrawBase::MouseButtonDown(rMEvt))) + bool bReturn = SwDrawBase::MouseButtonDown(rMEvt); + if (bReturn) { if (!m_nButtonUpCount) m_aStartPoint = m_pWin->PixelToLogic(rMEvt.GetPosPixel()); |