diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-05 19:34:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-05 19:34:13 +1000 |
commit | 0f1f537fd035be38e7f93cba998dc75aaf90763d (patch) | |
tree | f82f3a863b01635873186180382a40872d9feecb /src/Editor.cxx | |
parent | bada09f1e1634ac00eed3f23c4f748b1897de96a (diff) | |
download | scintilla-mirror-0f1f537fd035be38e7f93cba998dc75aaf90763d.tar.gz |
Extract unnamed caching enum as LineLayoutCache::Cache and change to enum class.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index dcaa6fc6b..bcfd4c82a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6754,11 +6754,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return vs.wrapIndentMode; case SCI_SETLAYOUTCACHE: - view.llc.SetLevel(static_cast<int>(wParam)); + view.llc.SetLevel(static_cast<LineLayoutCache::Cache>(wParam)); break; case SCI_GETLAYOUTCACHE: - return view.llc.GetLevel(); + return static_cast<sptr_t>(view.llc.GetLevel()); case SCI_SETPOSITIONCACHE: view.posCache.SetSize(wParam); |