X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ffont.cc;h=955a2ad1ca2821b94ad43df82829d12ba2449b5d;hb=8eedbed6e1f5b59e9714d7f857f486d8cf5f9434;hp=f3fbc68972d0885675ae1d19c1f05773084fee10;hpb=d42d9740f542ac93f21b21ec9fab8558f9e87037;p=dcpomatic.git diff --git a/src/lib/font.cc b/src/lib/font.cc index f3fbc6897..955a2ad1c 100644 --- a/src/lib/font.cc +++ b/src/lib/font.cc @@ -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) {