summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/xml.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 4d434f46a..f25d867a6 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -90,12 +90,9 @@ namespace XML
}
}
- Document::Document(const char *const data, const int size)
+ Document::Document(const char *const data, const int size) :
+ mDoc(data ? xmlParseMemory(data, size) : nullptr)
{
- if (data)
- mDoc = xmlParseMemory(data, size);
- else
- mDoc = nullptr;
}
Document::~Document()