From 21e930b292b8dcfacb3a5f4dd09c69d858654b6e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 4 Jun 2020 13:57:14 +0200 Subject: Upcoming loplugin:elidestringvar: lotuswordpro Change-Id: Ica7a05d890d2cd51ed7251e18dd630d1006ba6d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95506 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- lotuswordpro/source/filter/lwpfribtext.cxx | 85 ++++++------------------------ 1 file changed, 17 insertions(+), 68 deletions(-) (limited to 'lotuswordpro/source') diff --git a/lotuswordpro/source/filter/lwpfribtext.cxx b/lotuswordpro/source/filter/lwpfribtext.cxx index 0ba910ab7da3..51a941c47f5a 100644 --- a/lotuswordpro/source/filter/lwpfribtext.cxx +++ b/lotuswordpro/source/filter/lwpfribtext.cxx @@ -261,7 +261,6 @@ void LwpFribDocVar::XFConvert(XFContentContainer* pXFPara) pContent = new XFInitialCreator; break; case DOCSIZE: - { /* pContent = new XFAnnotation; XFTextContent* pSpan = new XFTextContent(); pSpan->SetText("Document Size is Here"); @@ -270,106 +269,56 @@ void LwpFribDocVar::XFConvert(XFContentContainer* pXFPara) static_cast(pContent)->Add(pPara); break; */ - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case SMARTMASTER: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case DIVISIONNAME: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case SECTIONNAME: - { - OUString text = "
"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"
"); return; - } case VERSIONCREATEBY: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONCREATEDATE: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONOTHEREDITORS: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONNAME: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONNUMBER: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case ALLVERSIONNAME: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONREMARK: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case DOCUMENTCATEGORY: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONLASTDATE: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case VERSIONLASTEDITOR: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case LASTEDIT: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case OTHEREDITORS: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } case NUMOFREVISION: - { - OUString text = ""; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,""); return; - } default: return; } -- cgit