From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/latin1literal.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/latin1literal.h') diff --git a/src/latin1literal.h b/src/latin1literal.h index 97c4cfc..1abcf6d 100644 --- a/src/latin1literal.h +++ b/src/latin1literal.h @@ -27,18 +27,18 @@ #ifndef LATIN1LITERAL_H #define LATIN1LITERAL_H -#include +#include namespace KBibTeX { /** * A class for explicit marking of string literals encoded in the ISO * 8859-1 character set. Allows for efficient, still (in terms of the - * chosen encoding) safe comparison with QString instances. To be used + * chosen encoding) safe comparison with TQString instances. To be used * like this: * * \code - * QString s = ..... + * TQString s = ..... * if (s == Latin1Literal("o")) { ..... } * \endcode * @@ -61,8 +61,8 @@ public: } // end namespace inline -bool operator==(const QString& s1, const KBibTeX::Latin1LiteralInternal& s2) { - const QChar* uc = s1.unicode(); +bool operator==(const TQString& s1, const KBibTeX::Latin1LiteralInternal& s2) { + const TQChar* uc = s1.unicode(); const char* c = s2.str; if(!c || !uc) { return (!c && !uc); @@ -82,17 +82,17 @@ bool operator==(const QString& s1, const KBibTeX::Latin1LiteralInternal& s2) { } inline -bool operator!=(const QString& s1, const KBibTeX::Latin1LiteralInternal& s2) { +bool operator!=(const TQString& s1, const KBibTeX::Latin1LiteralInternal& s2) { return !(s1 == s2); } inline -bool operator==(const KBibTeX::Latin1LiteralInternal& s1, const QString& s2) { +bool operator==(const KBibTeX::Latin1LiteralInternal& s1, const TQString& s2) { return s2 == s1; } inline -bool operator!=(const KBibTeX::Latin1LiteralInternal& s1, const QString& s2) { +bool operator!=(const KBibTeX::Latin1LiteralInternal& s1, const TQString& s2) { return !(s2 == s1); } -- cgit v1.2.3