From d213e5a0a5a03ac5793228cd1b30f4d347e61168 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Mar 2017 21:36:34 +0100 Subject: Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char) Change-Id: Ia3cc11ed882bf7e58c008f68af4340336c82b119 --- sc/source/filter/lotus/op.cxx | 4 ++-- 1 file 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 (nColEnd), static_cast (nRowEnd) ); sal_Char cBuf[sizeof(cPuffer)+1]; - if( isdigit( *cPuffer ) ) + if( rtl::isAsciiDigit( static_cast(*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 (nColEnd), static_cast (nRowEnd) ); sal_Char cBuf[sizeof(cPuffer)+1]; - if( isdigit( *cPuffer ) ) + if( rtl::isAsciiDigit( static_cast(*cPuffer) ) ) { // first char in name is a number -> prepend 'A' cBuf[0] = 'A'; strcpy( cBuf + 1, cPuffer ); // #100211# - checked -- cgit