summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)