From 9b697d2d3e34962385cd85a14d4cb14d5b1763ce Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 8 Oct 2008 11:58:34 +0000 Subject: Removed obsolete macro.{cc,h}. Made the passing of the Netcom class, use a pointer. --- client/macrowindow.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/macrowindow.cc') diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 3a6d3c7..18ed218 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -33,7 +33,6 @@ #include #include -#include "macro.h" #include "widgets/widget.h" #include "widgets/window.h" #include "widgetbuilder.h" @@ -44,10 +43,11 @@ extern QString user; extern QString host; extern quint16 port; -MacroWindow::MacroWindow(NetCom &n, QDomNode &xml_doc, QString course, bool collapsed) - : Collapser(), netcom(n) +MacroWindow::MacroWindow(NetCom *netcom, QDomNode &xml_doc, QString course, bool collapsed) + : Collapser() { this->course = course; + this->netcom = netcom; setCollapsedWidget(new ResumeWidget()); @@ -145,7 +145,7 @@ bool MacroWindow::doCommit() // If all entries passed validation, continue commit if(faulty == 0) { - netcom.send(widgets, macro, version); + netcom->send(widgets, macro, version); emit updateOnCommit(); setCollapsed(true); return true; @@ -278,7 +278,7 @@ void MacroWindow::toggleMacro() auxwidgets.clear(); luaprograms.clear(); - QDomDocument xml_doc = netcom.send(course, macro); + QDomDocument xml_doc = netcom->send(course, macro); // // TODO: This is where the dependency checking should occur. -- cgit v1.2.3