From dcd1151d77cd5579bdd003a933bca86690ed4f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 14 May 2020 11:00:19 +0200 Subject: Enforce use of bool literals instead of integers Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html --- core/oa_hash_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/oa_hash_map.h') diff --git a/core/oa_hash_map.h b/core/oa_hash_map.h index f7c31f8aae..b4d9ce4d51 100644 --- a/core/oa_hash_map.h +++ b/core/oa_hash_map.h @@ -90,7 +90,7 @@ private: uint32_t pos = hash % capacity; uint32_t distance = 0; - while (42) { + while (true) { if (hashes[pos] == EMPTY_HASH) { return false; } @@ -118,7 +118,7 @@ private: TKey key = p_key; TValue value = p_value; - while (42) { + while (true) { if (hashes[pos] == EMPTY_HASH) { _construct(pos, hash, key, value); -- cgit v1.2.3