summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 11:21:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-14 14:00:10 +0200
commitc5155f59e9fb7f5841de8a6a6fae2219400ac508 (patch)
treeddfbb14212a43a4d2a0ec20e224a89b254099d6b /sw/source/uibase
parente33685593f4cf747c93a02eb4b4c980544f790ca (diff)
loplugin:returnconstant in SwEditShell
Change-Id: I0daa8938e81017f8c6db4da55aed297f767799b7 Reviewed-on: https://gerrit.libreoffice.org/58959 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index ecf9a023995d..1dfaa712ecfe 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -320,11 +320,9 @@ void SwWrtShell::InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
bool SwWrtShell::UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
{
- bool bResult = false;
-
if(CanInsert())
{
- bResult = SwEditShell::UpdateTableOf(rTOX, pSet);
+ SwEditShell::UpdateTableOf(rTOX, pSet);
if (pSet == nullptr)
{
@@ -336,7 +334,7 @@ bool SwWrtShell::UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
}
}
- return bResult;
+ return false;
}
// handler for click on the field given as parameter.