From 2345f51b8fea92bf794300c5b4373ee3c03eb1e0 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 7 Feb 2026 11:55:11 +1100 Subject: Avoid some warnings to make more interesting issues visible. --- src/PositionCache.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/PositionCache.cxx') 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 pces{ defaultCacheSize }; + std::vector 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; -- cgit v1.2.3