summaryrefslogtreecommitdiff
path: root/vcl/source/control/field.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r--vcl/source/control/field.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 03fdc09e7112..0bc5425b1fc2 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -48,6 +48,7 @@
#include <unotools/localedatawrapper.hxx>
using namespace ::com::sun::star;
+using namespace ::comphelper;
// -----------------------------------------------------------------------
@@ -84,8 +85,8 @@ static sal_Bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
if ( (nGroup == KEYGROUP_FKEYS) || (nGroup == KEYGROUP_CURSOR) ||
(nGroup == KEYGROUP_MISC) ||
((cChar >= '0') && (cChar <= '9')) ||
- (cChar == rLocaleDataWrappper.getNumDecimalSep() ) ||
- (bThousandSep && (cChar == rLocaleDataWrappper.getNumThousandSep())) ||
+ string::equals(rLocaleDataWrappper.getNumDecimalSep(), cChar) ||
+ (bThousandSep && string::equals(rLocaleDataWrappper.getNumThousandSep(), cChar)) ||
(cChar == '-') )
return sal_False;
else
@@ -111,7 +112,7 @@ static sal_Bool ImplNumericGetValue( const XubString& rStr, double& rValue,
return sal_False;
// Fuehrende und nachfolgende Leerzeichen entfernen
- aStr = comphelper::string::strip(aStr, ' ');
+ aStr = string::strip(aStr, ' ');
// Position des Dezimalpunktes suchen
nDecPos = aStr.Search( rLocaleDataWrappper.getNumDecimalSep() );
@@ -1080,7 +1081,7 @@ static FieldUnit ImplStringToMetric(const rtl::OUString &rMetricString)
{
// return FieldUnit
rtl::OUString aStr(rMetricString.toAsciiLowerCase());
- aStr = comphelper::string::remove(aStr, ' ');
+ aStr = string::remove(aStr, ' ');
for( FieldUnitStringList::const_iterator it = pList->begin(); it != pList->end(); ++it )
{
if ( it->first.Equals( aStr ) )