Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / lib / font.cc
index ecf7aabf0146ae6c707ebf4218db19427d0d6a53..5cf30a2aae370704d985fc6fe31c102f0fcfaad3 100644 (file)
 #include <libxml++/libxml++.h>
 
 Font::Font (cxml::NodePtr node)
+       : id (node->string_child ("Id"))
+       , file (node->optional_string_child ("File"))
 {
-       id = node->string_child ("Id");
-       file = node->optional_string_child ("File");
+       
 }
 
 void