summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 09:20:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 10:57:04 +0100
commita4b60b78ea36d55a2abf0e5efccd8530568d2209 (patch)
tree9468dc489d37b11e14e190502816f3ed55edd0c9 /sw/source/uibase/dochdl
parent034a462475c2878e1eba13f10b2fcaf8c1755c4a (diff)
loplugin:returnconstant
Change-Id: I5b859de6ccd908eee4356acbe1f12b441ab36df3 Reviewed-on: https://gerrit.libreoffice.org/62539 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 115f3e8d959c..a52a59f38f30 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -306,12 +306,7 @@ bool SwGlossaryHdl::NewGlossary(const OUString& rName, const OUString& rShortNam
OUString* pOnlyText = nullptr;
if( bNoAttr )
{
- if( !pWrtShell->GetSelectedText( sOnlyText, ParaBreakType::ToOnlyCR ))
- {
- if (!pCurGrp)
- delete pTmp;
- return false;
- }
+ pWrtShell->GetSelectedText( sOnlyText, ParaBreakType::ToOnlyCR );
pOnlyText = &sOnlyText;
}