diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:36:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:36:34 +0100 |
commit | d213e5a0a5a03ac5793228cd1b30f4d347e61168 (patch) | |
tree | bde053a3b6cffe44642f76d235b675182a08ec14 /sc | |
parent | 065a124407ff4262d183e5c8eda98e10df832fbc (diff) |
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: Ia3cc11ed882bf7e58c008f68af4340336c82b119
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/lotus/op.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx index 0ce8d660ad59..4e91b98c77ff 100644 --- a/sc/source/filter/lotus/op.cxx +++ b/sc/source/filter/lotus/op.cxx @@ -212,7 +212,7 @@ void OP_NamedRange(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) static_cast<SCCOL> (nColEnd), static_cast<SCROW> (nRowEnd) ); sal_Char cBuf[sizeof(cPuffer)+1]; - if( isdigit( *cPuffer ) ) + if( rtl::isAsciiDigit( static_cast<unsigned char>(*cPuffer) ) ) { // first char in name is a number -> prepend 'A' cBuf[0] = 'A'; strcpy( cBuf + 1, cPuffer ); // #100211# - checked @@ -251,7 +251,7 @@ void OP_SymphNamedRange(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) static_cast<SCCOL> (nColEnd), static_cast<SCROW> (nRowEnd) ); sal_Char cBuf[sizeof(cPuffer)+1]; - if( isdigit( *cPuffer ) ) + if( rtl::isAsciiDigit( static_cast<unsigned char>(*cPuffer) ) ) { // first char in name is a number -> prepend 'A' cBuf[0] = 'A'; strcpy( cBuf + 1, cPuffer ); // #100211# - checked |