From 23e42e320f2957a97d1a23c88e60c7cddb79fa01 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 2 May 2013 14:51:06 +1000 Subject: Replacing raw pointers and allocations with std::vector and std::map. --- src/Style.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Style.h') diff --git a/src/Style.h b/src/Style.h index 85663acf2..4bd79de14 100644 --- a/src/Style.h +++ b/src/Style.h @@ -27,7 +27,8 @@ struct FontSpecification { characterSet(0), extraFontFlag(0) { } - bool EqualTo(const FontSpecification &other) const; + bool operator==(const FontSpecification &other) const; + bool operator<(const FontSpecification &other) const; }; // Just like Font but only has a copy of the FontID so should not delete it @@ -77,7 +78,7 @@ public: const char *fontName_, int characterSet_, int weight_, bool italic_, bool eolFilled_, bool underline_, ecaseForced caseForce_, - bool visible_, bool changeable_, bool hotspot_); + bool visible_, bool changeable_, bool hotspot_); void ClearTo(const Style &source); void Copy(Font &font_, const FontMeasurements &fm_); bool IsProtected() const { return !(changeable && visible);} -- cgit v1.2.3