From 587870911fa7834a831ef283bc758041179fd8bb Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Wed, 30 Jun 2021 17:51:54 -0400 Subject: [PATCH] roots: use const more Mark local variables that can be const const. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 6685f7f..9f117e3 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -955,8 +955,8 @@ BeesCrawl::BeesCrawl(shared_ptr ctx, BeesCrawlState initial_state) bool BeesCrawl::next_transid() { - auto roots = m_ctx->roots(); - auto next_transid = roots->transid_max(); + const auto roots = m_ctx->roots(); + const auto next_transid = roots->transid_max(); auto crawl_state = get_state_end(); // If we are already at transid_max then we are still finished @@ -966,7 +966,7 @@ BeesCrawl::next_transid() m_deferred = true; } else { // Log performance stats from the old crawl - auto current_time = time(NULL); + const auto current_time = time(NULL); // Start new crawl crawl_state.m_min_transid = crawl_state.m_max_transid;