summaryrefslogtreecommitdiff
path: root/svl/source/numbers
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:54:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:55 +0200
commit0d368642173fa93bb4cdab574423904530bc90a7 (patch)
tree83d95c236a43adf64d72f32332e9061c612ec462 /svl/source/numbers
parent832614ffcc771acdfe311e223e66caf58a42918e (diff)
loplugin:salunicodeliteral: svl
Change-Id: Iaa5b97267b6487c37744bd08d21c82015da9d522
Diffstat (limited to 'svl/source/numbers')
-rw-r--r--svl/source/numbers/zforfind.cxx2
-rw-r--r--svl/source/numbers/zformat.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index e9c7fabb4405..59eb48e595b7 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -547,7 +547,7 @@ inline bool ImpSvNumberInputScan::GetThousandSep( const OUString& rString,
const OUString& rSep = pFormatter->GetNumThousandSep();
// Is it an ordinary space instead of a no-break space?
bool bSpaceBreak = (rSep[0] == cNoBreakSpace || rSep[0] == cNarrowNoBreakSpace) &&
- rString[0] == (sal_Unicode)0x20 &&
+ rString[0] == u' ' &&
rSep.getLength() == 1 && rString.getLength() == 1;
if (!((rString == rSep || bSpaceBreak) && // nothing else
nStringPos < nAnzStrings - 1 && // safety first!
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 961f2d1701e5..b52646efaf77 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2052,7 +2052,7 @@ static bool lcl_appendStarFillChar( OUStringBuffer& rBuf, const OUString& rStr )
// last character before the user enters another one.
if (rStr.getLength() > 1)
{
- rBuf.append((sal_Unicode) 0x1B);
+ rBuf.append(u'\x001B');
rBuf.append(rStr[1]);
return true;
}
@@ -2064,7 +2064,7 @@ static bool lcl_insertStarFillChar( OUStringBuffer& rBuf, sal_Int32 nPos, const
if (rStr.getLength() > 1)
{
rBuf.insert( nPos, rStr[1]);
- rBuf.insert( nPos, (sal_Unicode) 0x1B);
+ rBuf.insert( nPos, u'\x001B');
return true;
}
return false;