diff options
Diffstat (limited to 'kbabel/common/diff.h')
-rw-r--r-- | kbabel/common/diff.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kbabel/common/diff.h b/kbabel/common/diff.h index 4e7dfb72..2ce055bf 100644 --- a/kbabel/common/diff.h +++ b/kbabel/common/diff.h @@ -35,8 +35,8 @@ #ifndef DIFF_H #define DIFF_H -#include <qvaluevector.h> -#include <qstringlist.h> +#include <tqvaluevector.h> +#include <tqstringlist.h> typedef enum { @@ -54,7 +54,7 @@ typedef enum * @short Word-by-word diff algorithm * @author Nick Shaforostoff <shafff@ukr.net> */ - QString wordDiff(const QString& oldString, const QString& newString); + TQString wordDiff(const TQString& oldString, const TQString& newString); /** @@ -66,22 +66,22 @@ typedef enum class LCSprinter { public: - LCSprinter(const QStringList &s_1, const QStringList &s_2, QValueVector<LCSMarker>* b_, const uint nT_, uint index); + LCSprinter(const TQStringList &s_1, const TQStringList &s_2, TQValueVector<LCSMarker>* b_, const uint nT_, uint index); void printLCS(uint index); - inline QString getString(); + inline TQString getString(); ~LCSprinter() {}; private: - QStringList s1, s2, resultString; + TQStringList s1, s2, resultString; uint nT;//for use 1d vector as 2d - QValueVector<LCSMarker> *b; - QStringList::iterator it1, it2; + TQValueVector<LCSMarker> *b; + TQStringList::iterator it1, it2; }; -inline QString LCSprinter::getString() +inline TQString LCSprinter::getString() { - return resultString.join("").replace(QChar('\n'), ""); //w/o replace we'd get whole line colored + return resultString.join("").replace(TQChar('\n'), ""); //w/o replace we'd get whole line colored } #endif // DIFF_H |