diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-06 10:55:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-13 08:16:03 +0200 |
commit | 3457da6abe0fd03efd19442e9790fbd1aa04c160 (patch) | |
tree | a7a2d5b51839b200e7cda79af863dce7a04d3a10 /sw/source/core/edit/edfcol.cxx | |
parent | 47196637a41ddfc9a8707771b1b9f482fd72c3b6 (diff) |
loplugin:stringstatic also look for local statics
Add some API to O*StringLiteral, to make it easier
to use in some places that were using O*String
Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 2f192ab8953d..ce8448611595 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -97,20 +97,20 @@ namespace { -const OUString MetaFilename("tscp/bails.rdf"); -const OUString MetaNS("urn:bails"); -const OUString ParagraphSignatureRDFNamespace = "urn:bails:loext:paragraph:signature:"; -const OUString ParagraphSignatureIdRDFName = "urn:bails:loext:paragraph:signature:id"; -const OUString ParagraphSignatureDigestRDFName = ":digest"; -const OUString ParagraphSignatureDateRDFName = ":date"; -const OUString ParagraphSignatureUsageRDFName = ":usage"; -const OUString ParagraphSignatureLastIdRDFName = "urn:bails:loext:paragraph:signature:lastid"; -const OUString ParagraphClassificationNameRDFName = "urn:bails:loext:paragraph:classification:name"; -const OUString ParagraphClassificationValueRDFName = "urn:bails:loext:paragraph:classification:value"; -const OUString ParagraphClassificationAbbrRDFName = "urn:bails:loext:paragraph:classification:abbreviation"; -const OUString ParagraphClassificationFieldNamesRDFName = "urn:bails:loext:paragraph:classification:fields"; -const OUString MetadataFieldServiceName = "com.sun.star.text.textfield.MetadataField"; -const OUString DocInfoServiceName = "com.sun.star.text.TextField.DocInfo.Custom"; +const OUStringLiteral MetaFilename("tscp/bails.rdf"); +const OUStringLiteral MetaNS("urn:bails"); +const OUStringLiteral ParagraphSignatureRDFNamespace = "urn:bails:loext:paragraph:signature:"; +const OUStringLiteral ParagraphSignatureIdRDFName = "urn:bails:loext:paragraph:signature:id"; +const OUStringLiteral ParagraphSignatureDigestRDFName = ":digest"; +const OUStringLiteral ParagraphSignatureDateRDFName = ":date"; +const OUStringLiteral ParagraphSignatureUsageRDFName = ":usage"; +const OUStringLiteral ParagraphSignatureLastIdRDFName = "urn:bails:loext:paragraph:signature:lastid"; +const OUStringLiteral ParagraphClassificationNameRDFName = "urn:bails:loext:paragraph:classification:name"; +const OUStringLiteral ParagraphClassificationValueRDFName = "urn:bails:loext:paragraph:classification:value"; +const OUStringLiteral ParagraphClassificationAbbrRDFName = "urn:bails:loext:paragraph:classification:abbreviation"; +const OUStringLiteral ParagraphClassificationFieldNamesRDFName = "urn:bails:loext:paragraph:classification:fields"; +const OUStringLiteral MetadataFieldServiceName = "com.sun.star.text.textfield.MetadataField"; +const OUStringLiteral DocInfoServiceName = "com.sun.star.text.TextField.DocInfo.Custom"; /// Find all page styles which are currently used in the document. std::vector<OUString> lcl_getUsedPageStyles(SwViewShell const * pShell) @@ -1920,7 +1920,7 @@ void SwEditShell::RestoreMetadataFieldsAndValidateParagraphSignatures() if (!xParagraphs.is()) return; - static const OUString sBlank(""); + static const OUStringLiteral sBlank(""); const sfx::ClassificationKeyCreator aKeyCreator(SfxClassificationHelper::getPolicyType()); const css::uno::Sequence<css::uno::Reference<rdf::XURI>> aGraphNames = SwRDFHelper::getGraphNames(xModel, MetaNS); |