diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-10 15:35:32 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-10 15:35:32 +1000 |
commit | 8dd25346bdaea0aa12ee83d35624d9d2c045af9a (patch) | |
tree | d0c65abb1138169d15531e10f98d7f21baac280b /src/ViewStyle.cxx | |
parent | a1edd2b133bf3ae4d263cea2f46aacb4b51fccb5 (diff) | |
download | scintilla-mirror-8dd25346bdaea0aa12ee83d35624d9d2c045af9a.tar.gz |
Fix variable shadowing issues.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 5e2ad1ee7..daa5b1a99 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -324,7 +324,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { } maxAscent = 1; maxDescent = 1; - FindMaxAscentDescent(maxAscent, maxDescent); + FindMaxAscentDescent(); maxAscent += extraAscent; maxDescent += extraDescent; lineHeight = maxAscent + maxDescent; @@ -514,7 +514,7 @@ FontRealised *ViewStyle::Find(const FontSpecification &fs) { return 0; } -void ViewStyle::FindMaxAscentDescent(unsigned int &maxAscent, unsigned int &maxDescent) { +void ViewStyle::FindMaxAscentDescent() { for (FontMap::const_iterator it = fonts.begin(); it != fonts.end(); ++it) { if (maxAscent < it->second->ascent) maxAscent = it->second->ascent; |