aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-05-02 14:51:06 +1000
committernyamatongwe <unknown>2013-05-02 14:51:06 +1000
commit23e42e320f2957a97d1a23c88e60c7cddb79fa01 (patch)
tree3613acbf69ed21b7cfc2e92a31ad17f6a71e7300 /src/Style.h
parent1f8862974636d649b93b514fc0ff8e5526e304b7 (diff)
downloadscintilla-mirror-23e42e320f2957a97d1a23c88e60c7cddb79fa01.tar.gz
Replacing raw pointers and allocations with std::vector and std::map.
Diffstat (limited to 'src/Style.h')
-rw-r--r--src/Style.h5
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);}