aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2026-02-07 11:55:11 +1100
committerNeil <nyamatongwe@gmail.com>2026-02-07 11:55:11 +1100
commit2345f51b8fea92bf794300c5b4373ee3c03eb1e0 (patch)
treeb91bd6ffa839c976a923137d05204f3c37032bc8 /src/PositionCache.cxx
parentac8ccbc3eaea26e831e1751fc627cf0bb09c190d (diff)
downloadscintilla-mirror-2345f51b8fea92bf794300c5b4373ee3c03eb1e0.tar.gz
Avoid some warnings to make more interesting issues visible.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index abe467f10..1f05ca752 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -1000,14 +1000,13 @@ public:
};
class PositionCache : public IPositionCache {
- static constexpr size_t defaultCacheSize = 0x400;
- std::vector<PositionCacheEntry> pces{ defaultCacheSize };
+ std::vector<PositionCacheEntry> pces{ positionCacheDefaultSize };
std::mutex mutex;
uint16_t clock = 1;
bool allClear = true;
public:
PositionCache();
- // Deleted so LineAnnotation objects can not be copied.
+ // Deleted so PositionCache objects can not be copied.
PositionCache(const PositionCache &) = delete;
PositionCache(PositionCache &&) = delete;
void operator=(const PositionCache &) = delete;