diff options
Diffstat (limited to 'kfile-plugins/c++/kfile_cpp.cpp')
-rw-r--r-- | kfile-plugins/c++/kfile_cpp.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kfile-plugins/c++/kfile_cpp.cpp b/kfile-plugins/c++/kfile_cpp.cpp index 0840ab7f..59f4fa7e 100644 --- a/kfile-plugins/c++/kfile_cpp.cpp +++ b/kfile-plugins/c++/kfile_cpp.cpp @@ -31,9 +31,9 @@ typedef KGenericFactory<KCppPlugin> CppFactory; K_EXPORT_COMPONENT_FACTORY(kfile_cpp, CppFactory("kfile_cpp")) -KCppPlugin::KCppPlugin(TQObject *parent, const char *name, +KCppPlugin::KCppPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { kdDebug(7034) << "c++ plugin\n"; makeMimeTypeInfo("text/x-c++src"); @@ -94,25 +94,25 @@ bool KCppPlugin::readInfo( KFileMetaInfo& info, uint ) continue; } - if (line.contains("/*")) inComment = true; + if (line.tqcontains("/*")) inComment = true; if (!inComment) { codeLines++; - if (line.contains(TQRegExp("^\\s*#\\s*include"))) Includes++; + if (line.tqcontains(TQRegExp("^\\s*#\\s*include"))) Includes++; - int pos = line.find("//"); + int pos = line.tqfind("//"); if (pos>=0) commentLines++; // truncate the comment - we don't want to count strings in it line.truncate(pos); - Strings+=line.contains(TQRegExp("\".*\"")); - Stringsi18n+=line.contains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\(")); + Strings+=line.tqcontains(TQRegExp("\".*\"")); + Stringsi18n+=line.tqcontains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\(")); } else commentLines++; - if (line.contains("*/")) inComment = false; + if (line.tqcontains("*/")) inComment = false; } KFileMetaInfoGroup group = appendGroup(info, "General"); |