From 737837216be5c92b9888510d70bb36e77582db66 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 12 Jan 2014 21:24:59 +0000 Subject: [PATCH] minor code cleanup --- src/highlighters.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index be264484..57d2bfc0 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -188,21 +188,21 @@ public: } private: - struct MatchesCache + struct Cache { - MatchesCache(const Buffer&){} + Cache(const Buffer&){} BufferRange m_range; size_t m_timestamp = 0; std::vector>> m_matches; }; - BufferSideCache m_cache; + BufferSideCache m_cache; Regex m_regex; ColorSpec m_colors; - MatchesCache& update_cache_ifn(const Buffer& buffer, const BufferRange& range) + Cache& update_cache_ifn(const Buffer& buffer, const BufferRange& range) { - MatchesCache& cache = m_cache.get(buffer); + Cache& cache = m_cache.get(buffer); if (buffer.timestamp() == cache.m_timestamp and range.first >= cache.m_range.first and