summaryrefslogtreecommitdiff
path: root/src/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-24 23:00:36 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-24 23:00:36 +0100
commit0d7e66baa9a6def5b333906d1f094f7ad78b0726 (patch)
treeb2b3839909c080648aaf338a075b40ec9938280e /src/types.cc
parente1e7de8d73bedd0c741e7df0390068c67867e09f (diff)
Fix previous.
Diffstat (limited to 'src/types.cc')
-rw-r--r--src/types.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cc b/src/types.cc
index f22bfa91..b4c10ddc 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -484,8 +484,8 @@ ContentVersion::as_xml (xmlpp::Element* parent) const
Luminance::Luminance (cxml::ConstNodePtr node)
- : _unit(string_to_unit(node->string_attribute("units")))
- , _value(raw_convert<float>(node->content()))
+ : _value(raw_convert<float>(node->content()))
+ , _unit(string_to_unit(node->string_attribute("units")))
{
}