diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 13:57:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 21:17:12 +0200 |
commit | 21e930b292b8dcfacb3a5f4dd09c69d858654b6e (patch) | |
tree | 9883734d5e229f582d4d805d30aa0d1d06f97074 /lotuswordpro/source | |
parent | e7f971f45a154f53be9d4df8fa6ce4f89ad5d92b (diff) |
Upcoming loplugin:elidestringvar: lotuswordpro
Change-Id: Ica7a05d890d2cd51ed7251e18dd630d1006ba6d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95506
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribtext.cxx | 85 |
1 files changed, 17 insertions, 68 deletions
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<XFAnnotation*>(pContent)->Add(pPara); break; */ - OUString text = "<Document Size>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Document Size>"); return; - } case SMARTMASTER: - { - OUString text = "<Smart master>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Smart master>"); return; - } case DIVISIONNAME: - { - OUString text = "<Division name>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Division name>"); return; - } case SECTIONNAME: - { - OUString text = "<Section name>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Section name>"); return; - } case VERSIONCREATEBY: - { - OUString text = "<Version Creat by>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Creat by>"); return; - } case VERSIONCREATEDATE: - { - OUString text = "<Version Creat date>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Creat date>"); return; - } case VERSIONOTHEREDITORS: - { - OUString text = "<Version other Editors>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version other Editors>"); return; - } case VERSIONNAME: - { - OUString text = "<Version Name>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Name>"); return; - } case VERSIONNUMBER: - { - OUString text = "<Version Numbers>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Numbers>"); return; - } case ALLVERSIONNAME: - { - OUString text = "<All Version Name>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<All Version Name>"); return; - } case VERSIONREMARK: - { - OUString text = "<Version Remark>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Remark>"); return; - } case DOCUMENTCATEGORY: - { - OUString text = "<Document Category>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Document Category>"); return; - } case VERSIONLASTDATE: - { - OUString text = "<Version Last Modify Date>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Last Modify Date>"); return; - } case VERSIONLASTEDITOR: - { - OUString text = "<Version Last Editor>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Version Last Editor>"); return; - } case LASTEDIT: - { - OUString text = "<Last Editor>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Last Editor>"); return; - } case OTHEREDITORS: - { - OUString text = "<Other Editors>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Other Editors>"); return; - } case NUMOFREVISION: - { - OUString text = "<Number of Revision>"; - LwpFrib::ConvertChars(pXFPara,text); + LwpFrib::ConvertChars(pXFPara,"<Number of Revision>"); return; - } default: return; } |