From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjs/regexp_object.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kjs/regexp_object.cpp') diff --git a/kjs/regexp_object.cpp b/kjs/regexp_object.cpp index edd2bbeca..4b8064644 100644 --- a/kjs/regexp_object.cpp +++ b/kjs/regexp_object.cpp @@ -234,7 +234,7 @@ int **RegExpObjectImp::registerRegexp( const RegExp* re, const UString& s ) Object RegExpObjectImp::arrayOfMatches(ExecState *exec, const UString &result) const { List list; - // The returned array contains 'result' as first item, followed by the list of matches + // The returned array tqcontains 'result' as first item, followed by the list of matches list.append(String(result)); if ( lastOvector ) for ( unsigned int i = 1 ; i < lastNrSubPatterns + 1 ; ++i ) @@ -292,7 +292,7 @@ RegExp* RegExpObjectImp::makeEngine(ExecState *exec, const UString &p, const Val // Check for validity of flags for (int pos = 0; pos < flags.size(); ++pos) { - switch (flags[pos].unicode()) { + switch (flags[pos].tqunicode()) { case 'g': case 'i': case 'm': @@ -306,9 +306,9 @@ RegExp* RegExpObjectImp::makeEngine(ExecState *exec, const UString &p, const Val } } - bool global = (flags.find("g") >= 0); - bool ignoreCase = (flags.find("i") >= 0); - bool multiline = (flags.find("m") >= 0); + bool global = (flags.tqfind("g") >= 0); + bool ignoreCase = (flags.tqfind("i") >= 0); + bool multiline = (flags.tqfind("m") >= 0); int reflags = RegExp::None; if (global) -- cgit v1.2.3