From 330c33ab6f97b279737bf9527c9add7bb1475450 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/ctags2/ctags2_part.cpp | 2 +- parts/ctags2/ctags2_settingswidget.cpp | 2 +- parts/ctags2/readtags.c | 4 ++-- parts/ctags2/tags.cpp | 2 +- parts/ctags2/tags.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'parts/ctags2') diff --git a/parts/ctags2/ctags2_part.cpp b/parts/ctags2/ctags2_part.cpp index 6dc0063b..93270a78 100644 --- a/parts/ctags2/ctags2_part.cpp +++ b/parts/ctags2/ctags2_part.cpp @@ -270,7 +270,7 @@ int CTags2Part::getFileLineFromStream( TQTextStream & istream, TQString const & // ctags interestingly escapes "/", but apparently nothing else. lets revert that TQString unescaped = pattern; - unescaped.tqreplace( "\\/", "/" ); + unescaped.replace( "\\/", "/" ); // most of the time, the ctags pattern has the form /^foo$/ // but this isn't true for some macro definitions diff --git a/parts/ctags2/ctags2_settingswidget.cpp b/parts/ctags2/ctags2_settingswidget.cpp index ea607eb6..da50a317 100644 --- a/parts/ctags2/ctags2_settingswidget.cpp +++ b/parts/ctags2/ctags2_settingswidget.cpp @@ -91,7 +91,7 @@ void CTags2SettingsWidget::loadSettings() while ( it != entryMap.end() ) { TQString file = config->readPathEntry( it.key() ); - new TagsItem( otherTagFiles, it.key(), file, activeTagsFiles.tqcontains( file ) ); + new TagsItem( otherTagFiles, it.key(), file, activeTagsFiles.contains( file ) ); ++it; } } diff --git a/parts/ctags2/readtags.c b/parts/ctags2/readtags.c index dce0a2e8..38014d3f 100644 --- a/parts/ctags2/readtags.c +++ b/parts/ctags2/readtags.c @@ -649,7 +649,7 @@ static tagResult findSequential (tagFile *const file) return result; } -static tagResult tqfind (tagFile *const file, tagEntry *const entry, +static tagResult find (tagFile *const file, tagEntry *const entry, const char *const name, const int options) { tagResult result = TagFailure; @@ -758,7 +758,7 @@ extern tagResult tagsFind (tagFile *const file, tagEntry *const entry, { tagResult result = TagFailure; if (file != NULL && file->initialized) - result = tqfind (file, entry, name, options); + result = find (file, entry, name, options); return result; } diff --git a/parts/ctags2/tags.cpp b/parts/ctags2/tags.cpp index 8b83c701..19993823 100644 --- a/parts/ctags2/tags.cpp +++ b/parts/ctags2/tags.cpp @@ -123,7 +123,7 @@ Tags::TagList Tags::getMatches(const char* tagFile, const TQString & tagpart, bo { type = "macro"; } - if ( types.isEmpty() || types.tqcontains( entry.kind ) ) + if ( types.isEmpty() || types.contains( entry.kind ) ) { list << TagEntry( TQString( entry.name ), type, file, TQString( entry.address.pattern ) ); } diff --git a/parts/ctags2/tags.h b/parts/ctags2/tags.h index d289d9d6..22b7e7ea 100644 --- a/parts/ctags2/tags.h +++ b/parts/ctags2/tags.h @@ -45,7 +45,7 @@ public: /** * Method to check if the tag database contains a specific tag * @param tag Tag to look up - * @return returns true if tag database tqcontains 'tag' + * @return returns true if tag database contains 'tag' */ static bool hasTag( const TQString & tag ); -- cgit v1.2.3