sc/source/filter/lotus/op.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit d213e5a0a5a03ac5793228cd1b30f4d347e61168 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Mar 22 21:36:34 2017 +0100 Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char) Change-Id: Ia3cc11ed882bf7e58c008f68af4340336c82b119 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits