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 | 77b174e27eb28ffce6794588d0de1433bffe7672 (patch) | |
tree | 196e0621062c01e8de3e294e321795413041468a /src/PositionCache.h | |
parent | 97738a2c60e7b3cb778f6d9f9045ad5a3ca67986 (diff) | |
download | scintilla-mirror-77b174e27eb28ffce6794588d0de1433bffe7672.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/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 614c81d38..53b407b71 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -189,7 +189,7 @@ public: void Clear(); void SetSize(size_t size_); size_t GetSize() const { return pces.size(); } - void MeasureWidths(Surface *surface, ViewStyle &vstyle, unsigned int styleNumber, + void MeasureWidths(Surface *surface, const ViewStyle &vstyle, unsigned int styleNumber, const char *s, unsigned int len, XYPOSITION *positions, Document *pdoc); }; |