summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/units.cpp')
-rw-r--r--src/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/units.cpp b/src/units.cpp
index 7260acf68..f095d7bbf 100644
--- a/src/units.cpp
+++ b/src/units.cpp
@@ -112,7 +112,7 @@ void Units::loadUnits()
void Units::loadXmlFile(const std::string &fileName)
{
XML::Document doc(fileName);
- const XmlNodePtr root = doc.rootNode();
+ const XmlNodePtrConst root = doc.rootNode();
if (!root || !xmlNameEqual(root, "units"))
{