From 2cf4763e3c1810af3278b4bf63f76cec9e94d28c Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 28 Mar 2014 15:38:04 +0100 Subject: [PATCH] we have a constant, use it Change-Id: I402f64fdab57508df20d4dffa7bdfdf9473d8b45 --- svl/source/numbers/zforfind.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 4bb4c18d27c2..e18c50d76b0e 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -494,7 +494,7 @@ inline bool ImpSvNumberInputScan::GetThousandSep( const OUString& rString, { const OUString& rSep = pFormatter->GetNumThousandSep(); // Is it an ordinary space instead of a non-breaking space? - bool bSpaceBreak = rSep[0] == (sal_Unicode)0xa0 && rString[0] == (sal_Unicode)0x20 && + bool bSpaceBreak = rSep[0] == cNonBreakingSpace && rString[0] == (sal_Unicode)0x20 && rSep.getLength() == 1 && rString.getLength() == 1; if (!((rString == rSep || bSpaceBreak) && // nothing else nStringPos < nAnzStrings - 1 && // safety first!