mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
roots: use const more
Mark local variables that can be const const. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
d384f3eec0
commit
587870911f
@ -955,8 +955,8 @@ BeesCrawl::BeesCrawl(shared_ptr<BeesContext> 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user