summaryrefslogtreecommitdiffstats
path: root/parts/distpart/specsupport.cpp
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 /parts/distpart/specsupport.cpp
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 'parts/distpart/specsupport.cpp')
-rw-r--r--parts/distpart/specsupport.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/parts/distpart/specsupport.cpp b/parts/distpart/specsupport.cpp
index 985c7c0f..63bfa59a 100644
--- a/parts/distpart/specsupport.cpp
+++ b/parts/distpart/specsupport.cpp
@@ -72,7 +72,7 @@ SpecSupport::~SpecSupport() {
void SpecSupport::slotbuildAllPushButtonPressed() {
TQMap<TQString,TQString>::Iterator it;
TQFile file1(dir + "/" + getAppSource());
- TQFile file2(*(map.tqfind("_sourcedir")) + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
TQMessageBox::critical(0 ,i18n("Error"),i18n("You need to create a source archive first."));
@@ -81,17 +81,17 @@ void SpecSupport::slotbuildAllPushButtonPressed() {
else
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("KDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote(dir) +
- " && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.tqfind("_sourcedir"))));
+ " && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.find("_sourcedir"))));
}
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("KDevelop/MakeFrontend"))
- makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.tqfind("_specdir")) != map.end()) ? (*it) : dir)) +
+ makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) +
" && rpmbuild -ba " + m_part->project()->projectName() + ".spec");
}
// TQPushButton* exportSPECPushButton;
void SpecSupport::slotexportSPECPushButtonPressed() {
TQMap<TQString,TQString>::Iterator it;
- TQString specname = ((it = map.tqfind("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
+ TQString specname = ((it = map.find("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
specname += ("/" + m_part->project()->projectName() + ".spec");
TQFile file(specname);
@@ -171,7 +171,7 @@ void SpecSupport::slotsrcPackagePushButtonPressed() {
TQMap<TQString,TQString>::Iterator it;
TQFile file1(dir + "/" + getAppSource());
- TQFile file2(*(map.tqfind("_sourcedir")) + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
TQMessageBox::critical(0,i18n("Error"),i18n("You need to create a source archive first."));
@@ -180,10 +180,10 @@ void SpecSupport::slotsrcPackagePushButtonPressed() {
else
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("KDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote(dir) +
- " && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.tqfind("_sourcedir"))));
+ " && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.find("_sourcedir"))));
}
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("KDevelop/MakeFrontend"))
- makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.tqfind("_specdir")) != map.end()) ? (*it) : dir)) +
+ makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) +
" && rpmbuild -bs " + m_part->project()->projectName() + ".spec");
}
@@ -212,7 +212,7 @@ void SpecSupport::parseDotRpmmacros() {
TQString value = re.cap(2).stripWhiteSpace();
while(subst.search(value) != -1) {
- value.tqreplace(TQRegExp("%\\{"+ TQRegExp_escape( subst.cap(1) ) +"\\}"),*map.tqfind(subst.cap(1)));
+ value.replace(TQRegExp("%\\{"+ TQRegExp_escape( subst.cap(1) ) +"\\}"),*map.find(subst.cap(1)));
}
map.insert(re.cap(1),value);
}
@@ -231,7 +231,7 @@ void SpecSupport::parseDotRpmmacros() {
bool SpecSupport::createRpmDirectoryFromMacro(const TQString & name) {
TQMap<TQString,TQString>::Iterator it;
- if((it = map.tqfind(name)) != map.end()) {
+ if((it = map.find(name)) != map.end()) {
TQDir dir(*it);
if (!dir.exists()) return dir.mkdir(*it);
}