summaryrefslogtreecommitdiffstats
path: root/languages/ada
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /languages/ada
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
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
Diffstat (limited to 'languages/ada')
-rw-r--r--languages/ada/ada_utils.cpp2
-rw-r--r--languages/ada/adasupportpart.cpp4
-rw-r--r--languages/ada/addclass.cpp6
-rw-r--r--languages/ada/problemreporter.cpp8
4 files changed, 10 insertions, 10 deletions
diff --git a/languages/ada/ada_utils.cpp b/languages/ada/ada_utils.cpp
index 516218c8..43b94fa7 100644
--- a/languages/ada/ada_utils.cpp
+++ b/languages/ada/ada_utils.cpp
@@ -30,7 +30,7 @@ TQString ada_spec_filename (const TQString& comp_unit_name)
{
TQString fn (comp_unit_name.lower ());
- fn.tqreplace (TQRegExp("."), "-");
+ fn.replace (TQRegExp("."), "-");
fn += ".ads";
return fn;
}
diff --git a/languages/ada/adasupportpart.cpp b/languages/ada/adasupportpart.cpp
index 35b34c44..c1caf305 100644
--- a/languages/ada/adasupportpart.cpp
+++ b/languages/ada/adasupportpart.cpp
@@ -167,7 +167,7 @@ void AdaSupportPart::maybeParse (const TQString &fileName)
{
kdDebug () << "AdaSupportPart::maybeParse: " << fileName << endl;
- if (!fileExtensions ().tqcontains (TQFileInfo (fileName).extension ()))
+ if (!fileExtensions ().contains (TQFileInfo (fileName).extension ()))
return;
// mainWindow ()->statusBar ()->message (i18n ("Parsing file: %1").arg (fileName));
@@ -298,7 +298,7 @@ void AdaSupportPart::savedFile (const KURL& fileName)
{
kdDebug () << "AdaSupportPart::savedFile ()" << endl;
- if (project ()->allFiles ().tqcontains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
+ if (project ()->allFiles ().contains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
maybeParse (fileName.path());
emit updatedSourceInfo();
}
diff --git a/languages/ada/addclass.cpp b/languages/ada/addclass.cpp
index 8605e42a..75420266 100644
--- a/languages/ada/addclass.cpp
+++ b/languages/ada/addclass.cpp
@@ -33,7 +33,7 @@ AddClassInfo::AddClassInfo()
TQString AddClassInfo::adaFileName() const
{
TQString dest = className;
- dest.tqreplace(TQRegExp("\\."), "/");
+ dest.replace(TQRegExp("\\."), "/");
return sourceDir + "/" + dest + ".ada";
}
@@ -206,7 +206,7 @@ bool AddClass::generate()
// find class and package name
TQString className, packageName;
- int i = m_info.className.tqfindRev('.');
+ int i = m_info.className.findRev('.');
if (i == -1)
{
packageName = "";
@@ -322,7 +322,7 @@ bool AddClass::generate()
// create directories
TQString dest = packageName;
- dest.tqreplace(TQRegExp("\\."), "/");
+ dest.replace(TQRegExp("\\."), "/");
dest = m_info.sourceDir + "/" + dest;
if (!makeDirs(dest))
diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp
index 1b9b5bc4..23ef2981 100644
--- a/languages/ada/problemreporter.cpp
+++ b/languages/ada/problemreporter.cpp
@@ -185,7 +185,7 @@ void ProblemReporter::reparse()
}
/* Temporarily deactivated (crashes)*/
- if (!m_adaSupport->fileExtensions ().tqcontains (TQFileInfo (m_filename).extension ()))
+ if (!m_adaSupport->fileExtensions ().contains (TQFileInfo (m_filename).extension ()))
{
m_bgParser = new BackgroundParser( this, m_editor->text(), m_filename );
m_bgParser->start();
@@ -211,7 +211,7 @@ void ProblemReporter::reportError( TQString message,
new ProblemItem( this,
"error",
- message.tqreplace( TQRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -223,7 +223,7 @@ void ProblemReporter::reportWarning( TQString message,
{
new ProblemItem( this,
"warning",
- message.tqreplace( TQRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -235,7 +235,7 @@ void ProblemReporter::reportMessage( TQString message,
{
new TQListViewItem( this,
"message",
- message.tqreplace( TQRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );