diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-06-22 12:50:03 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-06-22 12:50:03 +1000 |
| commit | 068bfb9213d810b1551cdc48fdfd216060253103 (patch) | |
| tree | 961424276d263ea442f98112aa3bc26dafa92bef /src/Indicator.h | |
| parent | 318fb4b54beb34a036bfe405127c9329b67ea95f (diff) | |
| download | scintilla-mirror-068bfb9213d810b1551cdc48fdfd216060253103.tar.gz | |
Drawing and measuring should not change ViewStyle which is set by the container
so mark ViewStyle parameters as const.
Provide a FontAlias copy constructor and use it to work around non-const Font
arguments to Surface when sourced from const ViewStyle.
Diffstat (limited to 'src/Indicator.h')
| -rw-r--r-- | src/Indicator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Indicator.h b/src/Indicator.h index 0284a855b..beda8214b 100644 --- a/src/Indicator.h +++ b/src/Indicator.h @@ -23,7 +23,7 @@ public: int outlineAlpha; Indicator() : style(INDIC_PLAIN), under(false), fore(ColourDesired(0,0,0)), fillAlpha(30), outlineAlpha(50) { } - void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine); + void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) const; }; #ifdef SCI_NAMESPACE |
