From 26a6b739a38e928d005ac689e693a4d4dd7dc3ea Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 19 Aug 2008 07:50:47 +0000 Subject: Made the netcom object global, for socket reuse. --- client/macro.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/macro.cc') 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(); -- cgit v1.2.3