summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 11:49:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-11 11:48:06 +0200
commit02a5c22e8e4f91b6a8522126b8086520ebb78284 (patch)
tree0a63b65e9def48cf03b9cfb248efac192be1cc07 /sw/source
parent2df2ce1b51d13bc9e203fab1b7eb3c88c906588c (diff)
loplugin:unnecessaryreturn SwWrtShell::Toggle*
Change-Id: I221dca35df23205023cf675b83c94c83178217d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117028 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx4
-rw-r--r--sw/source/uibase/wrtsh/select.cxx6
2 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 1a094aebf91b..96c7cec3b31a 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -150,7 +150,7 @@ public:
void EnterExtMode();
void LeaveExtMode();
- bool ToggleExtMode();
+ void ToggleExtMode();
bool IsExtMode() const { return m_bExtMode; }
void EnterAddMode();
@@ -160,7 +160,7 @@ public:
void EnterBlockMode();
void LeaveBlockMode();
- bool ToggleBlockMode();
+ void ToggleBlockMode();
bool IsBlockMode() const { return m_bBlockMode; }
void SetInsMode( bool bOn = true );
diff --git a/sw/source/uibase/wrtsh/select.cxx b/sw/source/uibase/wrtsh/select.cxx
index 8c1c21fc964c..33c47745539f 100644
--- a/sw/source/uibase/wrtsh/select.cxx
+++ b/sw/source/uibase/wrtsh/select.cxx
@@ -761,18 +761,16 @@ void SwWrtShell::ToggleAddMode()
Invalidate();
}
-bool SwWrtShell::ToggleBlockMode()
+void SwWrtShell::ToggleBlockMode()
{
m_bBlockMode ? LeaveBlockMode(): EnterBlockMode();
Invalidate();
- return !m_bBlockMode;
}
-bool SwWrtShell::ToggleExtMode()
+void SwWrtShell::ToggleExtMode()
{
m_bExtMode ? LeaveExtMode() : EnterExtMode();
Invalidate();
- return !m_bExtMode;
}
// Dragging in standard mode (Selecting of content)