diff options
author | Neil <nyamatongwe@gmail.com> | 2014-03-18 09:53:08 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-03-18 09:53:08 +1100 |
commit | c84fd8d919c0fd00ecf93a9264260a74a26f2f10 (patch) | |
tree | 629dc9a703248f6f103d9181605d4ee12158d6c9 /src/ViewStyle.cxx | |
parent | ce485ff65d257dc4f19c21f40b82cac437e76196 (diff) | |
download | scintilla-mirror-c84fd8d919c0fd00ecf93a9264260a74a26f2f10.tar.gz |
Minor tweaks to avoid ststic checking warnings.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 503775dbf..b1c9dc10b 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -310,9 +310,9 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { styles[i].extraFontFlag = extraFontFlag; } - CreateFont(styles[STYLE_DEFAULT]); + CreateAndAddFont(styles[STYLE_DEFAULT]); for (unsigned int j=0; j<styles.size(); j++) { - CreateFont(styles[j]); + CreateAndAddFont(styles[j]); } for (FontMap::iterator it = fonts.begin(); it != fonts.end(); ++it) { @@ -498,7 +498,7 @@ void ViewStyle::AllocStyles(size_t sizeNew) { } } -void ViewStyle::CreateFont(const FontSpecification &fs) { +void ViewStyle::CreateAndAddFont(const FontSpecification &fs) { if (fs.fontName) { FontMap::iterator it = fonts.find(fs); if (it == fonts.end()) { |