diff options
Diffstat (limited to 'tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp')
-rw-r--r-- | tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp b/tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp index e6cde6c..fee2a00 100644 --- a/tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp +++ b/tqtinterface/qt4/tools/linguist/shared/metatranslator.cpp @@ -180,7 +180,7 @@ bool TsHandler::endElement( const TQString& /* namespaceURI */, bool TsHandler::characters( const TQString& ch ) { TQString t = ch; - t.tqreplace( "\r", "" ); + t.replace( "\r", "" ); accum += t; return TRUE; } @@ -482,8 +482,8 @@ bool MetaTranslator::release( const TQString& filename, bool verbose, sourceText, comment0). */ if ( comment.isEmpty() - || tqcontains(context, sourceText, "") - || !tor.tqfindMessage(context, sourceText, "").translation() + || contains(context, sourceText, "") + || !tor.findMessage(context, sourceText, "").translation() .isNull() ) { tor.insert( m.key() ); } else { @@ -503,20 +503,20 @@ bool MetaTranslator::release( const TQString& filename, bool verbose, return saved; } -bool MetaTranslator::tqcontains( const char *context, const char *sourceText, +bool MetaTranslator::contains( const char *context, const char *sourceText, const char *comment ) const { - return mm.tqfind( MetaTranslatorMessage(context, sourceText, comment) ) != + return mm.find( MetaTranslatorMessage(context, sourceText, comment) ) != mm.end(); } void MetaTranslator::insert( const MetaTranslatorMessage& m ) { int pos = (int)mm.count(); - TMM::Iterator n = mm.tqfind( m ); + TMM::Iterator n = mm.find( m ); if ( n != mm.end() ) pos = *n; - mm.tqreplace( m, pos ); + mm.replace( m, pos ); } void MetaTranslator::stripObsoleteMessages() |