summaryrefslogtreecommitdiff
path: root/client/builder.cc
diff options
context:
space:
mode:
authordeva <deva>2008-05-22 06:47:43 +0000
committerdeva <deva>2008-05-22 06:47:43 +0000
commit5dac0856cb400a4f40280e7caae188781dac7b85 (patch)
tree3ec0d430532ed6d90e120e08ade3536992c3e869 /client/builder.cc
parent62f78877e99e1748d6548deeb65067770c0ad0b8 (diff)
Made script take current user into account. Generalized some naming stuff.
Diffstat (limited to 'client/builder.cc')
-rw-r--r--client/builder.cc10
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());
}