summaryrefslogtreecommitdiffstats
path: root/languages/ada/ada_utils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/ada/ada_utils.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/ada/ada_utils.cpp')
-rw-r--r--languages/ada/ada_utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/languages/ada/ada_utils.cpp b/languages/ada/ada_utils.cpp
index 6e4bea13..516218c8 100644
--- a/languages/ada/ada_utils.cpp
+++ b/languages/ada/ada_utils.cpp
@@ -16,7 +16,7 @@
TQString qtext (const RefAdaAST& n)
{
- return TQString::fromLatin1 (text (n).c_str ());
+ return TQString::tqfromLatin1 (text (n).c_str ());
}
TQStringList qnamelist (const RefAdaAST& n)
@@ -30,7 +30,7 @@ TQString ada_spec_filename (const TQString& comp_unit_name)
{
TQString fn (comp_unit_name.lower ());
- fn.replace (TQRegExp("."), "-");
+ fn.tqreplace (TQRegExp("."), "-");
fn += ".ads";
return fn;
}
@@ -44,7 +44,7 @@ TQString fq_specfilename (const TQString& comp_unit_name)
TQString adaincpath = getenv ("ADA_INCLUDE_PATH");
if (adaincpath.isNull ())
- return TQString::null;
+ return TQString();
TQStringList dirs = TQStringList::split (':', adaincpath);
TQString fq_filename;
@@ -64,6 +64,6 @@ TQString fq_specfilename (const TQString& comp_unit_name)
} else {
kdDebug () << "Cannot find file " << fname << endl;
}
- return TQString::null;
+ return TQString();
}