diff options
Diffstat (limited to 'kspread/kspread_format.cc')
-rw-r--r-- | kspread/kspread_format.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kspread/kspread_format.cc b/kspread/kspread_format.cc index 95898cd3..73c0bbff 100644 --- a/kspread/kspread_format.cc +++ b/kspread/kspread_format.cc @@ -3429,15 +3429,15 @@ Currency::Currency(TQString const & code, currencyFormat format) if ( format == Gnumeric ) { // I use TQChar(c,r) here so that this file can be opened in any encoding... - if ( code.tqfind( TQChar( 172, 32 ) ) != -1 ) // Euro sign + if ( code.find( TQChar( 172, 32 ) ) != -1 ) // Euro sign m_code = TQChar( 172, 32 ); - else if ( code.tqfind( TQChar( 163, 0 ) ) != -1 ) // Pound sign + else if ( code.find( TQChar( 163, 0 ) ) != -1 ) // Pound sign m_code = TQChar( 163, 0 ); - else if ( code.tqfind( TQChar( 165, 0 ) ) != -1 ) // Yen sign + else if ( code.find( TQChar( 165, 0 ) ) != -1 ) // Yen sign m_code = TQChar( 165, 0 ); else if ( code[0] == '[' && code[1] == '$' ) { - int n = code.tqfind(']'); + int n = code.find(']'); if (n != -1) { m_code = code.mid( 2, n - 2 ); @@ -3447,7 +3447,7 @@ Currency::Currency(TQString const & code, currencyFormat format) m_type = 0; } } - else if ( code.tqfind( '$' ) != -1 ) + else if ( code.find( '$' ) != -1 ) m_code = "$"; } // end gnumeric m_type = gCurrencyMap.getIndex( m_code ); |