diff options
Diffstat (limited to 'client/builder.cc')
-rw-r--r-- | client/builder.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/client/builder.cc b/client/builder.cc index b5a9928..63cdcb9 100644 --- a/client/builder.cc +++ b/client/builder.cc @@ -27,12 +27,8 @@ extern QString user; Builder::Builder(QDomDocument *xml_doc) : QObject() { - // Assign root element from xml_doc - this->xml_doc = xml_doc; - QDomElement xml_elem = xml_doc->documentElement(); - // Execute the recursive function with documentElement - recurser(xml_elem, NULL); + recurser(xml_doc->documentElement(), NULL); } Builder::~Builder() @@ -224,8 +220,8 @@ void Builder::cont(QString name) mainwidget->close(); } else { QMessageBox::critical(NULL, "Fejl", - "Makroen er ikke udfyldt korrekt, prøv igen.\n" - , QMessageBox::Ok); + "Makroen er ikke udfyldt korrekt, prøv igen.\n", + QMessageBox::Ok); } printf("%s : Builder -> continuing...\n", macro.toStdString().c_str()); } |