summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-19 07:50:47 +0000
committerdeva <deva>2008-08-19 07:50:47 +0000
commit26a6b739a38e928d005ac689e693a4d4dd7dc3ea (patch)
treec9f60b66fc795cf67baaac95ebb9eac03494f677 /client/macro.cc
parent6a2cc91b62f227ca71d759654ed34c138d236800 (diff)
Made the netcom object global, for socket reuse.
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/macro.cc b/client/macro.cc
index b0943d0..7f3286c 100644
--- a/client/macro.cc
+++ b/client/macro.cc
@@ -76,8 +76,7 @@ static MacroEventFilter *macro_event_filter = NULL;
*/
static void create_macro(QString course, QString macro)
{
- NetCom netcom(host, port, user, cpr);
- QDomDocument xml_doc = netcom.send(course, macro);
+ QDomDocument xml_doc = Global::netcom->send(course, macro);
cleanup_macros();