summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/gubed/quantadebuggergubed.cpp
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 14:35:51 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 14:35:51 +0000
commit7af884d886e2428d5b28e9cf7d81c97d7e378123 (patch)
tree64fe5f9f02f7d338baa54c3a380e43a66ae45f8f /quanta/components/debugger/gubed/quantadebuggergubed.cpp
parentaf2166652dfcfacffa91a7e1466e3abed19862ce (diff)
downloadtdewebdev-7af884d8.tar.gz
tdewebdev-7af884d8.zip
[kdewebdev/quanta] fix deprecation warnings; make compatible with QT_NO_ASCII_CAST flag
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1214823 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/debugger/gubed/quantadebuggergubed.cpp')
-rw-r--r--quanta/components/debugger/gubed/quantadebuggergubed.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/quanta/components/debugger/gubed/quantadebuggergubed.cpp b/quanta/components/debugger/gubed/quantadebuggergubed.cpp
index f909832a..8c2ab1b5 100644
--- a/quanta/components/debugger/gubed/quantadebuggergubed.cpp
+++ b/quanta/components/debugger/gubed/quantadebuggergubed.cpp
@@ -443,7 +443,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
else if(m_command == "status")
{
long argcnt = args["args"].toLong();
- TQString msg = i18n(args["message"]); // How will we get these messages throught to the translators?
+ TQString msg = i18n(args["message"].ascii()); // How will we get these messages throught to the translators?
for(int cnt = 1; cnt <= argcnt; cnt++)
msg.replace("%" + TQString("%1").arg(cnt) + "%", args[TQString("arg%1").arg(cnt)]);
@@ -604,15 +604,15 @@ bool QuantaDebuggerGubed::sendCommand(const TQString& command, StringMap args)
TQString buffer = phpSerialize(args);
buffer = TQString(command + ":%1;" + buffer).arg(buffer.length());
- m_socket->writeBlock(buffer, buffer.length());
+ m_socket->writeBlock(buffer.ascii(), buffer.length());
return true;
}
// Send a command to gubed
-bool QuantaDebuggerGubed::sendCommand(const TQString& command, char * firstarg, ...)
+bool QuantaDebuggerGubed::sendCommand(const TQString& command, const char * firstarg, ...)
{
StringMap ca;
- char *next;
+ const char *next;
va_list l_Arg;
va_start(l_Arg, firstarg);