diff options
author | deva <deva> | 2008-05-22 06:47:43 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-22 06:47:43 +0000 |
commit | 5dac0856cb400a4f40280e7caae188781dac7b85 (patch) | |
tree | 3ec0d430532ed6d90e120e08ade3536992c3e869 /client/builder.cc | |
parent | 62f78877e99e1748d6548deeb65067770c0ad0b8 (diff) |
Made script take current user into account. Generalized some naming stuff.
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()); } |