projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow copy-construction of Font.
[dcpomatic.git]
/
src
/
lib
/
font.cc
diff --git
a/src/lib/font.cc
b/src/lib/font.cc
index f3fbc68972d0885675ae1d19c1f05773084fee10..955a2ad1ca2821b94ad43df82829d12ba2449b5d 100644
(file)
--- 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)
{
void
Font::as_xml (xmlpp::Node* node)
{