diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-16 15:06:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-17 07:28:49 +0200 |
commit | 8b4719c29fc9bd7e198ad6ced301e1ff7a350f16 (patch) | |
tree | d3ec594b343f56c76056418d835d3bc7b696a9ab /filter | |
parent | tdf#108350 writerfilter: restore TimesNewRoman as default font (diff) | |
download | core-8b4719c29fc9bd7e198ad6ced301e1ff7a350f16.tar.gz core-8b4719c29fc9bd7e198ad6ced301e1ff7a350f16.zip |
Rename OUStringLiteral1 to OUStringChar
It started out as a wrapper around character literals, but has by now become a
wrapper around arbitrary single characters. Besides updating the documentation,
this change is a mechanical
for i in $(git grep -Fl OUStringLiteral1); do sed -i -e s/OUStringLiteral1/OUStringChar/g "$i"; done
Change-Id: I1b9eaa4b3fbc9025ce4a4bffea3db1c16188b76f
Reviewed-on: https://gerrit.libreoffice.org/80892
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/idxf/dxfreprd.cxx | 6 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/graphicfilter/idxf/dxfreprd.cxx b/filter/source/graphicfilter/idxf/dxfreprd.cxx index 1bd789876fd4..5de89903c499 100644 --- a/filter/source/graphicfilter/idxf/dxfreprd.cxx +++ b/filter/source/graphicfilter/idxf/dxfreprd.cxx @@ -460,9 +460,9 @@ OUString DXFRepresentation::ToOUString(const OString& s) const | RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR); result = result.replaceAll("%%o", "") // Overscore - simply remove .replaceAll("%%u", "") // Underscore - simply remove - .replaceAll("%%d", OUStringLiteral1(0x00B0)) // Degrees symbol (°) - .replaceAll("%%p", OUStringLiteral1(0x00B1)) // Tolerance symbol (±) - .replaceAll("%%c", OUStringLiteral1(0x2205)) // Diameter symbol + .replaceAll("%%d", OUStringChar(0x00B0)) // Degrees symbol (°) + .replaceAll("%%p", OUStringChar(0x00B1)) // Tolerance symbol (±) + .replaceAll("%%c", OUStringChar(0x2205)) // Diameter symbol .replaceAll("%%%", "%"); // Percent symbol sal_Int32 pos = result.indexOf("%%"); // %%nnn, where nnn - 3-digit decimal ASCII code diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 9b5e83596f05..5cfa5a968650 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -6848,7 +6848,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport } else { - aStr.append(OUStringLiteral1(n)); + aStr.append(OUStringChar(n)); } } } |