Allow copy-construction of Font.
[dcpomatic.git] / src / lib / font.cc
index f3fbc68972d0885675ae1d19c1f05773084fee10..955a2ad1ca2821b94ad43df82829d12ba2449b5d 100644 (file)
@@ -44,6 +44,24 @@ Font::Font (cxml::NodePtr node)
 }
 
 
+Font::Font(Font const& other)
+       : _id(other._id)
+       , _content(other._content)
+{
+
+}
+
+
+Font& Font::operator=(Font const& other)
+{
+       if (&other != this) {
+               _id = other._id;
+               _content = other._content;
+       }
+       return *this;
+}
+
+
 void
 Font::as_xml (xmlpp::Node* node)
 {