diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-01 10:51:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-02 06:34:36 +0000 |
commit | 06eb947c1651cb623cd60d81b08281de4cc6a86b (patch) | |
tree | ac4583be05d0967149cc06f561b04b9abf587970 /xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | |
parent | 9e9f52ad17a73f353b372bcdc9971443b961d39a (diff) |
inline some constant strings in xmloff (part1)
Change-Id: I7971f210ffb30bdd80a1adde2c286b4d092bd053
Reviewed-on: https://gerrit.libreoffice.org/31433
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx index c71cd9fedcc9..ce125aaaeedb 100644 --- a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx +++ b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx @@ -51,8 +51,8 @@ XMLIndexChapterInfoEntryContext::XMLIndexChapterInfoEntryContext( const OUString& rLocalName, bool bT ) : XMLIndexSimpleEntryContext(rImport, - (bT ? rTemplate.sTokenEntryNumber - : rTemplate.sTokenChapterInfo), + (bT ? OUString("TokenEntryNumber") + : OUString("TokenChapterInfo")), rTemplate, nPrfx, rLocalName), nChapterInfo(ChapterFormat::NAME_NUMBER), bChapterInfoOK(false), @@ -176,13 +176,13 @@ void XMLIndexChapterInfoEntryContext::FillPropertyValues( if( bChapterInfoOK ) { // chapter info field - rValues[nIndex].Name = rTemplateContext.sChapterFormat; + rValues[nIndex].Name = "ChapterFormat"; rValues[nIndex].Value = css::uno::Any(nChapterInfo); nIndex++; } if( bOutlineLevelOK ) { - rValues[nIndex].Name = rTemplateContext.sChapterLevel; + rValues[nIndex].Name = "ChapterLevel"; rValues[nIndex].Value = css::uno::Any(nOutlineLevel); } } |