From 58c88eea82ed62f46281fc8c411680ff4b8657b0 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Date: Mon, 4 May 2009 18:24:15 +0200
Subject: [PATCH] don't construct cookie object unnecessarily

---
 src/plugins/debugger/gdbengine.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 00c42189e4d..4d820b3cd8b 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -919,11 +919,7 @@ void GdbEngine::executeDebuggerCommand(const QString &command)
         return;
     }
 
-    GdbCookie cmd;
-    cmd.command = command;
-    cmd.type = -1;
-
-    m_gdbProc.write(cmd.command.toLatin1() + "\r\n");
+    m_gdbProc.write(command.toLatin1() + "\r\n");
 }
 
 void GdbEngine::handleTargetCore(const GdbResultRecord &record)
-- 
GitLab