summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 07:43:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 07:43:52 +0200
commit5536aea8228778e00b9f1ca8199d858cd03780ad (patch)
treed244654bc3c5aa4e5b3a87df5f004ef61049996c /filter
parent20f6a6b159c69771dc0e087f63b6c701908e32e2 (diff)
Let OUStringLiteral1 take its arg as ctor arg, not template arg
...which makes it more flexible, can now also be used on non-const arguments. The drawback of the argument no longer being a compile-time constant is remedied by making the ctor constexpr. Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/idxf/dxfreprd.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/graphicfilter/idxf/dxfreprd.cxx b/filter/source/graphicfilter/idxf/dxfreprd.cxx
index ff66914fa2e9..6a80a9686db6 100644
--- a/filter/source/graphicfilter/idxf/dxfreprd.cxx
+++ b/filter/source/graphicfilter/idxf/dxfreprd.cxx
@@ -405,9 +405,9 @@ OUString DXFRepresentation::ToOUString(const OString& s) const
OUString result = OStringToOUString(s, getTextEncoding());
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", OUStringLiteral1(0x00B0)) // Degrees symbol (°)
+ .replaceAll("%%p", OUStringLiteral1(0x00B1)) // Tolerance symbol (±)
+ .replaceAll("%%c", OUStringLiteral1(0x2205)) // Diameter symbol
.replaceAll("%%%", "%"); // Percent symbol
sal_Int32 pos = result.indexOf("%%"); // %%nnn, where nnn - 3-digit decimal ASCII code