summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edfcol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 10:20:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 13:39:08 +0200
commit56775815a39c2ee4a0f711738947d2fb234c4923 (patch)
treee11780c6736e32518950102ceb73103fabaeb576 /sw/source/core/edit/edfcol.cxx
parentfe851316be45b891468fdab4d8b8f23fdf869e5e (diff)
loplugin:constantparam
Change-Id: Ia58d8950b3b9e48bbe9f075b9fe1eed62d9abf0d Reviewed-on: https://gerrit.libreoffice.org/53188 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r--sw/source/core/edit/edfcol.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index 696ec27507e9..a9e7d1d05ad1 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -2023,7 +2023,7 @@ bool SwEditShell::IsCursorInParagraphMetadataField() const
return false;
}
-bool SwEditShell::RemoveParagraphMetadataFieldAtCursor(const bool bBackspaceNotDel)
+bool SwEditShell::RemoveParagraphMetadataFieldAtCursor()
{
if (GetCursor() && GetCursor()->Start())
{
@@ -2034,10 +2034,7 @@ bool SwEditShell::RemoveParagraphMetadataFieldAtCursor(const bool bBackspaceNotD
{
// Try moving the cursor to see if we're _facing_ a metafield or not,
// as opposed to being within one.
- if (bBackspaceNotDel)
- index--; // Backspace moves left
- else
- index++; // Delete moves right
+ index--; // Backspace moves left
xField = lcl_GetParagraphMetadataFieldAtIndex(GetDoc()->GetDocShell(), pNode, index);
}