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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/zforscan.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 200095d3ac82..2cc56a9410c4 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -112,7 +112,7 @@ bool ImpSvNumberformatScan::bStandardColorNeedInitialization = true; // This vector will hold *only* the color names in German language. ::std::vector<OUString> ImpSvNumberformatScan::sGermanColorNames; -const OUString ImpSvNumberformatScan::sErrStr = "#FMT"; +const OUStringLiteral ImpSvNumberformatScan::sErrStr = "#FMT"; ImpSvNumberformatScan::ImpSvNumberformatScan( SvNumberFormatter* pFormatterP ) : maNullDate( 30, 12, 1899) diff --git a/svl/source/numbers/zforscan.hxx b/svl/source/numbers/zforscan.hxx index a5e7ecaa8b3e..235b690f25a4 100644 --- a/svl/source/numbers/zforscan.hxx +++ b/svl/source/numbers/zforscan.hxx @@ -91,7 +91,7 @@ public: const OUString& GetFalseString() const { return GetSpecialKeyword( NF_KEY_FALSE ); } const OUString& GetRedString() const { return GetKeywords()[NF_KEY_RED]; } const OUString& GetBooleanString() const { return GetKeywords()[NF_KEY_BOOLEAN]; } - static const OUString& GetErrorString() { return sErrStr; } + static const OUStringLiteral& GetErrorString() { return sErrStr; } static const ::std::vector<Color> & GetStandardColors() { return StandardColor; @@ -211,7 +211,7 @@ private: // Private section OUString sCurAbbrev; // Currency abbreviation OUString sBooleanEquivalent1; // "TRUE";"TRUE";"FALSE" OUString sBooleanEquivalent2; // [>0]"TRUE";[<0]"TRUE";"FALSE" - static const OUString sErrStr; // String for error output + static const OUStringLiteral sErrStr; // String for error output bool bConvertMode; // Set in the convert mode bool mbConvertDateOrder; // Set in the convert mode whether to convert date particles order |