diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-08 08:34:52 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-08 08:34:52 +1000 |
commit | 4333970abdd54863a591f95df3c3e7e968aa2519 (patch) | |
tree | 4ce4c0328efa72601422bb1674fcabd8942c1051 /src/ViewStyle.cxx | |
parent | d2bb3203067343b51bf3c543b331741f6fa4ad21 (diff) | |
download | scintilla-mirror-4333970abdd54863a591f95df3c3e7e968aa2519.tar.gz |
Rename FontNames to UniqueStringSet and move into UniqueString.
It may be useful in more situations than just font names.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 148163bec..f507c5528 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -33,32 +33,6 @@ MarginStyle::MarginStyle(int style_, int width_, int mask_) : style(style_), width(width_), mask(mask_), sensitive(false), cursor(SC_CURSORREVERSEARROW) { } -// A list of the fontnames - avoids wasting space in each style -FontNames::FontNames() { -} - -FontNames::~FontNames() { - Clear(); -} - -void FontNames::Clear() { - names.clear(); -} - -const char *FontNames::Save(const char *name) { - if (!name) - return nullptr; - - for (const UniqueString &nm : names) { - if (strcmp(nm.get(), name) == 0) { - return nm.get(); - } - } - - names.push_back(UniqueStringCopy(name)); - return names.back().get(); -} - FontRealised::FontRealised() { } |