diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-25 01:13:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-25 01:13:54 +0100 |
| commit | 04889748a0e78a163b2268e794144cd71e880264 (patch) | |
| tree | 21c57339a3abaa0691d75553362a14889388d10b /src/lib/font.h | |
| parent | 996886d220feec5299b66bd2a3bfe916c2c7ae39 (diff) | |
White space: film.{cc,h} font.{cc,h}
Diffstat (limited to 'src/lib/font.h')
| -rw-r--r-- | src/lib/font.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/font.h b/src/lib/font.h index 092b682ba..669504579 100644 --- a/src/lib/font.h +++ b/src/lib/font.h @@ -37,19 +37,19 @@ namespace dcpomatic { class Font { public: - explicit Font (std::string id) - : _id (id) {} + explicit Font(std::string id) + : _id(id) {} - explicit Font (cxml::NodePtr node); + explicit Font(cxml::NodePtr node); - Font (std::string id, boost::filesystem::path file) - : _id (id) + Font(std::string id, boost::filesystem::path file) + : _id(id) { _content.file = file; } - Font (std::string id, dcp::ArrayData data) - : _id (id) + Font(std::string id, dcp::ArrayData data) + : _id(id) { _content.data = data; } @@ -59,21 +59,21 @@ public: void as_xml(xmlpp::Element* element); - std::string id () const { + std::string id() const { return _id; } - void set_id (std::string id) { + void set_id(std::string id) { _id = id; } - boost::optional<boost::filesystem::path> file () const { + boost::optional<boost::filesystem::path> file() const { return _content.file; } - void set_file (boost::filesystem::path file) { + void set_file(boost::filesystem::path file) { _content.file = file; - Changed (); + Changed(); } /** @return the data set passed to the dcp::ArrayData constructor, @@ -103,8 +103,8 @@ private: }; -bool operator!= (Font const & a, Font const & b); -bool operator== (Font const & a, Font const & b); +bool operator!=(Font const & a, Font const & b); +bool operator==(Font const & a, Font const & b); } |
