summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@pm.me>2024-05-05 09:45:16 +0200
committerArnaud Versini <arnaud.versini@pm.me>2024-05-05 13:42:05 +0200
commit7ab8d335226a74b864dc61775050b2fbddfaa18a (patch)
tree85a40966cf93e598a849961ce81618e39e51c14e /basic
parent864d0f0d8da33f6f5c0a99ae54a52c0172449901 (diff)
basic : use std::u16string_view and new OUString literal
Change-Id: Id3cd708b98e1b0551955562afe3ac594bdc6e50a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167153 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxform.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx
index 84e5f22fd8da..49d45ccc5f38 100644
--- a/basic/source/sbx/sbxform.cxx
+++ b/basic/source/sbx/sbxform.cxx
@@ -62,24 +62,24 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
#define FORMAT_SEPARATOR ';'
// predefined formats for the Format$()-command:
-constexpr OUString BASICFORMAT_GENERALNUMBER = u"General Number"_ustr;
-constexpr OUString BASICFORMAT_CURRENCY = u"Currency"_ustr;
-constexpr OUString BASICFORMAT_FIXED = u"Fixed"_ustr;
-constexpr OUString BASICFORMAT_STANDARD = u"Standard"_ustr;
-constexpr OUString BASICFORMAT_PERCENT = u"Percent"_ustr;
-constexpr OUString BASICFORMAT_SCIENTIFIC = u"Scientific"_ustr;
-constexpr OUString BASICFORMAT_YESNO = u"Yes/No"_ustr;
-constexpr OUString BASICFORMAT_TRUEFALSE = u"True/False"_ustr;
-constexpr OUString BASICFORMAT_ONOFF = u"On/Off"_ustr;
+constexpr std::u16string_view BASICFORMAT_GENERALNUMBER = u"General Number";
+constexpr std::u16string_view BASICFORMAT_CURRENCY = u"Currency";
+constexpr std::u16string_view BASICFORMAT_FIXED = u"Fixed";
+constexpr std::u16string_view BASICFORMAT_STANDARD = u"Standard";
+constexpr std::u16string_view BASICFORMAT_PERCENT = u"Percent";
+constexpr std::u16string_view BASICFORMAT_SCIENTIFIC = u"Scientific";
+constexpr std::u16string_view BASICFORMAT_YESNO = u"Yes/No";
+constexpr std::u16string_view BASICFORMAT_TRUEFALSE = u"True/False";
+constexpr std::u16string_view BASICFORMAT_ONOFF = u"On/Off";
// Comment: Visual-Basic has a maximum of 12 positions after the
// decimal point for floating-point-numbers.
// all format-strings are compatible to Visual-Basic:
-constexpr OUStringLiteral GENERALNUMBER_FORMAT = u"0.############";
-constexpr OUStringLiteral FIXED_FORMAT = u"0.00";
-constexpr OUStringLiteral STANDARD_FORMAT = u"@0.00";
-constexpr OUStringLiteral PERCENT_FORMAT = u"0.00%";
-constexpr OUStringLiteral SCIENTIFIC_FORMAT = u"#.00E+00";
+constexpr OUString GENERALNUMBER_FORMAT = u"0.############"_ustr;
+constexpr OUString FIXED_FORMAT = u"0.00"_ustr;
+constexpr OUString STANDARD_FORMAT = u"@0.00"_ustr;
+constexpr OUString PERCENT_FORMAT = u"0.00%"_ustr;
+constexpr OUString SCIENTIFIC_FORMAT = u"#.00E+00"_ustr;
// Comment: the character @ means that thousand-separators shall
// be generated. That's a StarBasic 'extension'.