diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-11 15:05:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-12 15:50:19 +0200 |
commit | b2706fcf9c4f2df0715aa4550bbecf17cb7732ab (patch) | |
tree | c55f28819c2a5179a05577ca6acd6265ccb3ff1c /basic | |
parent | d29c68225965ea2c4953efc05b69770a8cdaf39a (diff) |
Avoid reserved identifier
Change-Id: I0ed8754bb06328b61a41079a4f446d8dd2b61bb7
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxform.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx index 92c8bc8ef2f4..0a16daaba2f8 100644 --- a/basic/source/sbx/sbxform.cxx +++ b/basic/source/sbx/sbxform.cxx @@ -40,7 +40,7 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings #include <float.h> #include <math.h> -#define _NO_DIGIT -1 +#define NO_DIGIT_ -1 #define MAX_NO_OF_DIGITS DBL_DIG #define MAX_DOUBLE_BUFFER_LENGTH MAX_NO_OF_DIGITS + 9 @@ -260,7 +260,7 @@ short SbxBasicFormater::GetDigitAtPosScan( short nPos, bool& bFoundFirstDigit ) // number's dissolution (double) if( nPos>nNumExp || abs(nNumExp-nPos)>MAX_NO_OF_DIGITS ) { - return _NO_DIGIT; + return NO_DIGIT_; } // determine the index of the position in the number-string: // skip the leading sign @@ -334,7 +334,7 @@ short SbxBasicFormater::GetDigitAtPos( double dNumber, short nPos, // error only at numbers > 0, i. e. for digits before // the decimal point if( nMaxDigit<nPos && !bFoundFirstDigit && nPos>=0 ) - return _NO_DIGIT; + return NO_DIGIT_; bFoundFirstDigit = true; for( short i=nMaxDigit; i>=nPos; i-- ) @@ -702,7 +702,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber, #else AppendDigit( sReturnStrg, nTempDigit = GetDigitAtPos( dNumber, j, dNumber, bFoundFirstDigit ) ); #endif - if( nTempDigit!=_NO_DIGIT ) + if( nTempDigit != NO_DIGIT_ ) { bFirstDigit = false; } @@ -736,7 +736,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber, AppendDigit( sReturnStrg, nTempDigit = GetDigitAtPos( dNumber, nDigitPos, dNumber, bFoundFirstDigit ) ); #endif - if( nTempDigit != _NO_DIGIT ) + if( nTempDigit != NO_DIGIT_ ) { bFirstDigit = false; } |