diff options
author | nyamatongwe <devnull@localhost> | 2013-05-02 14:51:06 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-02 14:51:06 +1000 |
commit | 4a0c34d751dbf5b6f17c0ff5f4334b74ae1e6f9c (patch) | |
tree | b64b57ec886311495b18259c7464dfc992668140 /src/Style.h | |
parent | 99b7137e39e76ef912a7928aa7e12b284b46b1ec (diff) | |
download | scintilla-mirror-4a0c34d751dbf5b6f17c0ff5f4334b74ae1e6f9c.tar.gz |
Replacing raw pointers and allocations with std::vector and std::map.
Diffstat (limited to 'src/Style.h')
-rw-r--r-- | src/Style.h | 5 |
1 files changed, 3 insertions, 2 deletions
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);} |