diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-24 01:58:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-24 01:58:25 +0100 |
| commit | 140ebe37bde0c9c9b84e8961573a7e65d3bd7b19 (patch) | |
| tree | 830d6de2e1aae3498a47fd12539542ac07bb440c /src/font_size.cc | |
| parent | 91d8979878ba731b2d86d7aa5dc30f6a3c1a75f1 (diff) | |
Add some operator==.
Diffstat (limited to 'src/font_size.cc')
| -rw-r--r-- | src/font_size.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/font_size.cc b/src/font_size.cc index a208867..00a74cf 100644 --- a/src/font_size.cc +++ b/src/font_size.cc @@ -62,3 +62,9 @@ FontSize::specified () const { return _proportional || _points; } + +bool +sub::operator== (FontSize const & a, FontSize const & b) +{ + return a.proportional() == b.proportional() && a.points() == b.points(); +} |
