[kdevelop] fixed gcc-4.5 incompatibilities

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1221512 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent cf21ddc3cc
commit 4dc0617cbc

@ -183,7 +183,7 @@ void BashSupportPart::startApplication(const TQString &program)
{
kdDebug() << "starting application" << program << endl;
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), program, TRUE);
appFrontend->startAppCommand(TQString(), program, TRUE);
}

@ -325,7 +325,6 @@ bool STTY::findExternalTTY(const TQString &termApp)
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
const char* scriptStr = script.latin1();
const char* end = 0;
if ( termApp == "konsole" )
{
@ -333,14 +332,14 @@ bool STTY::findExternalTTY(const TQString &termApp)
"-caption", i18n("kdevelop: Debug application console").local8Bit().data(),
"-e", "sh",
"-c", scriptStr,
end);
NULL);
}
else
{
::execlp( prog, prog,
"-e", "sh",
"-c", scriptStr,
end);
NULL);
}
// Should not get here, as above should always work

@ -194,7 +194,7 @@ void CSharpSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevcsharpsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
appFrontend->startAppCommand(TQString(), program, inTerminal);
}

@ -464,7 +464,7 @@ void perlparser::getPerlINC() {
return;
}
array.setRawData(buffer, n);
result=TQString::TQString(array);
result=TQString(array);
array.resetRawData(buffer, n);
}
pclose(fd);

@ -194,7 +194,7 @@ void PerlSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevperlsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
appFrontend->startAppCommand(TQString(), program, inTerminal);
}

@ -328,7 +328,7 @@ void PythonSupportPart::startApplication(const TQString &program)
{
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevpythonsupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
appFrontend->startAppCommand(TQString(), program, inTerminal);
}

@ -309,7 +309,6 @@ bool STTY::findExternalTTY(const TQString &termApp)
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
const char* scriptStr = script.latin1();
const char* end = 0;
if ( termApp == "konsole" )
{
@ -317,14 +316,14 @@ bool STTY::findExternalTTY(const TQString &termApp)
"-caption", i18n("kdevelop: Debug application console").local8Bit().data(),
"-e", "sh",
"-c", scriptStr,
end);
NULL);
}
else
{
::execlp( prog, prog,
"-e", "sh",
"-c", scriptStr,
end);
NULL);
}
// Should not get here, as above should always work

@ -614,7 +614,7 @@ TQString RubySupportPart::characterCoding() {
void RubySupportPart::startApplication(const TQString &program) {
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevrubysupport/run/terminal");
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), program, inTerminal);
appFrontend->startAppCommand(TQString(), program, inTerminal);
}

@ -154,7 +154,7 @@ void ToolsPart::startCommand(TQString cmdline, bool captured, TQString fileName)
if (captured)
{
if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("KDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString::TQString(), cmdline, false);
appFrontend->startAppCommand(TQString(), cmdline, false);
}
else
{

Loading…
Cancel
Save