summaryrefslogtreecommitdiffstats
path: root/libtdegames/kgame/kmessageserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdegames/kgame/kmessageserver.cpp')
-rw-r--r--libtdegames/kgame/kmessageserver.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libtdegames/kgame/kmessageserver.cpp b/libtdegames/kgame/kmessageserver.cpp
index 0ea66dda..cd5da802 100644
--- a/libtdegames/kgame/kmessageserver.cpp
+++ b/libtdegames/kgame/kmessageserver.cpp
@@ -415,10 +415,7 @@ void KMessageServer::processOneMessage ()
{
case REQ_BROADCAST:
out_stream << TQ_UINT32 (MSG_BROADCAST) << clientID;
- // FIXME, compiler bug?
- // this should be okay, since TQBuffer is subclass of TQIODevice! :
- // out_buffer.writeBlock (in_buffer.readAll());
- TQT_TQIODEVICE(&out_buffer)->writeBlock (in_buffer.readAll());
+ out_buffer.writeBlock (in_buffer.readAll());
broadcastMessage (out_msg);
break;
@@ -427,8 +424,7 @@ void KMessageServer::processOneMessage ()
TQValueList <TQ_UINT32> clients;
in_stream >> clients;
out_stream << TQ_UINT32 (MSG_FORWARD) << clientID << clients;
- // see above!
- TQT_TQIODEVICE(&out_buffer)->writeBlock (in_buffer.readAll());
+ out_buffer.writeBlock (in_buffer.readAll());
sendMessage (clients, out_msg);
}
break;