diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-19 11:23:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-23 09:42:22 +0200 |
commit | a84c07509d9051084684987ad5ec47631afd50e5 (patch) | |
tree | b9366fc0852114c933aed2dc2c1b9fb018bc7f20 /sw/source/uibase/dochdl/gloshdl.cxx | |
parent | fd68059586246f415a5fa6637fafad1ac9293e92 (diff) |
loplugin:constantfunction: sw
Change-Id: Ife8ccbe4625d87d1e3314c75604cb3d947011680
Diffstat (limited to 'sw/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 2b3fc6f82163..42eb6f06a634 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -302,11 +302,6 @@ bool SwGlossaryHdl::HasShortName(const OUString& rShortName) const return bRet; } -bool SwGlossaryHdl::ConvertToNew(SwTextBlocks& /*rOld*/) -{ - return true; -} - // Create autotext bool SwGlossaryHdl::NewGlossary(const OUString& rName, const OUString& rShortName, bool bCreateGroup, bool bNoAttr) @@ -316,8 +311,6 @@ bool SwGlossaryHdl::NewGlossary(const OUString& rName, const OUString& rShortNam //pTmp == 0 if the AutoText path setting is wrong if(!pTmp) return false; - if(!ConvertToNew(*pTmp)) - return false; OUString sOnlyTxt; OUString* pOnlyTxt = 0; @@ -347,7 +340,7 @@ bool SwGlossaryHdl::DelGlossary(const OUString &rShortName) SwTextBlocks *pGlossary = pCurGrp ? pCurGrp : rStatGlossaries.GetGroupDoc(aCurGrp); //pTmp == 0 if the AutoText path setting is wrong - if(!pGlossary || !ConvertToNew(*pGlossary)) + if(!pGlossary) return false; sal_uInt16 nIdx = pGlossary->GetIndex( rShortName ); @@ -652,9 +645,6 @@ bool SwGlossaryHdl::Rename(const OUString& rOldShort, const OUString& rNewShortN : rStatGlossaries.GetGroupDoc(aCurGrp); if(pGlossary) { - if(!ConvertToNew(*pGlossary)) - return false; - sal_uInt16 nIdx = pGlossary->GetIndex( rOldShort ); sal_uInt16 nOldLongIdx = pGlossary->GetLongIndex( rNewName ); sal_uInt16 nOldIdx = pGlossary->GetIndex( rNewShortName ); |