Commit a1eba222 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up code

parent 27f950de
......@@ -82,12 +82,9 @@ Utils::StoredTypes TemplateSelection::loadStoredTypes(const QDomElement &element
return types;
}
QHash<Utils::AppsType, Utils::importExportParameters> TemplateSelection::loadTemplate(const QDomDocument &doc)
QHash<Utils::AppsType, Utils::importExportParameters> TemplateSelection::loadTemplate()
{
QHash<Utils::AppsType, Utils::importExportParameters> value;
if (!doc.isNull()) {
mDocument = doc;
}
QDomElement docElem = mDocument.documentElement();
QDomNode n = docElem.firstChild();
while (!n.isNull()) {
......
......@@ -33,7 +33,7 @@ public:
void createTemplate(const QHash<Utils::AppsType, Utils::importExportParameters> &stored);
QHash<Utils::AppsType, Utils::importExportParameters> loadTemplate(const QDomDocument &doc = QDomDocument());
QHash<Utils::AppsType, Utils::importExportParameters> loadTemplate();
QString saveTemplate() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment