summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx4
-rw-r--r--sw/source/uibase/uiview/view.cxx4
-rw-r--r--sw/source/uibase/utlui/shdwcrsr.cxx2
-rw-r--r--sw/source/uibase/web/wview.cxx4
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 2355151e851c..7c25ed315d81 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -247,7 +247,7 @@ void SwPostItMgr::CheckForRemovedPostIts()
auto it = currentIt++;
if ( !(*it)->UseElement() )
{
- SwSidebarItem* p = (*it);
+ SwSidebarItem* p = *it;
currentIt = mvPostItFields.erase(std::remove(mvPostItFields.begin(), mvPostItFields.end(), *it), mvPostItFields.end());
if (GetActiveSidebarWin() == p->pPostIt)
SetActiveSidebarWin(nullptr);
@@ -303,7 +303,7 @@ void SwPostItMgr::RemoveItem( SfxBroadcaster* pBroadcast )
[&pBroadcast](const SwSidebarItem* pField) { return pField->GetBroadCaster() == pBroadcast; });
if (i != mvPostItFields.end())
{
- SwSidebarItem* p = (*i);
+ SwSidebarItem* p = *i;
if (GetActiveSidebarWin() == p->pPostIt)
SetActiveSidebarWin(nullptr);
// tdf#120487 remove from list before dispose, so comment window
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 2e048d72e617..153e33f6bad6 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -271,8 +271,8 @@ void SwView::SelectShell()
m_pLastTableFormat = pCurTableFormat;
//SEL_TBL and SEL_TBL_CELLS can be ORed!
- SelectionType nNewSelectionType = (m_pWrtShell->GetSelectionType()
- & ~SelectionType::TableCell);
+ SelectionType nNewSelectionType = m_pWrtShell->GetSelectionType()
+ & ~SelectionType::TableCell;
if ( m_pFormShell && m_pFormShell->IsActiveControl() )
nNewSelectionType |= SelectionType::FormControl;
diff --git a/sw/source/uibase/utlui/shdwcrsr.cxx b/sw/source/uibase/utlui/shdwcrsr.cxx
index a9238f3040b9..dcc2bbac6eee 100644
--- a/sw/source/uibase/utlui/shdwcrsr.cxx
+++ b/sw/source/uibase/utlui/shdwcrsr.cxx
@@ -48,7 +48,7 @@ void SwShadowCursor::SetPos( const Point& rPt, long nHeight, sal_uInt16 nMode )
void SwShadowCursor::DrawTri( const Point& rPt, long nHeight, bool bLeft )
{
- long nLineDiff = ( nHeight / 2 );
+ long nLineDiff = nHeight / 2;
long nLineDiffHalf = nLineDiff / 2;
// Dot above
diff --git a/sw/source/uibase/web/wview.cxx b/sw/source/uibase/web/wview.cxx
index 7d8f7cd0eed2..c3f0c0f27ca7 100644
--- a/sw/source/uibase/web/wview.cxx
+++ b/sw/source/uibase/web/wview.cxx
@@ -104,8 +104,8 @@ void SwWebView::SelectShell()
}
SetLastTableFrameFormat(pCurTableFormat);
//SEL_TBL and SEL_TBL_CELLS can be ored!
- SelectionType nNewSelectionType = (GetWrtShell().GetSelectionType()
- & ~SelectionType::TableCell);
+ SelectionType nNewSelectionType = GetWrtShell().GetSelectionType()
+ & ~SelectionType::TableCell;
SelectionType _nSelectionType = GetSelectionType();
if ( nNewSelectionType == _nSelectionType )
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 233947209bbe..2d7685cfd3ae 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1409,7 +1409,7 @@ SelectionType SwWrtShell::GetSelectionType() const
nCnt |= SelectionType::Table;
if ( IsTableMode() )
- nCnt |= (SelectionType::Table | SelectionType::TableCell);
+ nCnt |= SelectionType::Table | SelectionType::TableCell;
// Do not pop up numbering toolbar, if the text node has a numbering of type SVX_NUM_NUMBER_NONE.
const SwNumRule* pNumRule = GetNumRuleAtCurrCursorPos();