diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kompare/libdiff2/parser.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kompare/libdiff2/parser.cpp')
-rw-r--r-- | kompare/libdiff2/parser.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kompare/libdiff2/parser.cpp b/kompare/libdiff2/parser.cpp index 04ff7a4a..1e3efc8a 100644 --- a/kompare/libdiff2/parser.cpp +++ b/kompare/libdiff2/parser.cpp @@ -34,13 +34,13 @@ Parser::~Parser() { } -int Parser::cleanUpCrap( QStringList& diffLines ) +int Parser::cleanUpCrap( TQStringList& diffLines ) { - QStringList::Iterator it = diffLines.begin(); + TQStringList::Iterator it = diffLines.begin(); int nol = 0; - QString noNewLine( "\\ No newline" ); + TQString noNewLine( "\\ No newline" ); for ( ; it != diffLines.end(); ++it ) { @@ -49,7 +49,7 @@ int Parser::cleanUpCrap( QStringList& diffLines ) it = diffLines.remove( it ); // correcting the advance of the iterator because of the remove --it; - QString temp( *it ); + TQString temp( *it ); temp.truncate( temp.find( '\n' ) ); *it = temp; ++nol; @@ -59,7 +59,7 @@ int Parser::cleanUpCrap( QStringList& diffLines ) return nol; } -DiffModelList* Parser::parse( QStringList& diffLines ) +DiffModelList* Parser::parse( TQStringList& diffLines ) { /* Basically determine the generator then call the parse method */ ParserBase* parser; @@ -107,14 +107,14 @@ DiffModelList* Parser::parse( QStringList& diffLines ) return modelList; } -enum Kompare::Generator Parser::determineGenerator( const QStringList& diffLines ) +enum Kompare::Generator Parser::determineGenerator( const TQStringList& diffLines ) { // Shit have to duplicate some code with this method and the ParserBase derived classes - QString cvsDiff ( "Index: " ); - QString perforceDiff( "==== " ); + TQString cvsDiff ( "Index: " ); + TQString perforceDiff( "==== " ); - QStringList::ConstIterator it = diffLines.begin(); - QStringList::ConstIterator linesEnd = diffLines.end(); + TQStringList::ConstIterator it = diffLines.begin(); + TQStringList::ConstIterator linesEnd = diffLines.end(); while ( it != linesEnd ) { |