summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorleveldb Team <no-reply@google.com>2020-04-17 21:19:50 +0000
committerVictor Costan <costan@google.com>2020-04-28 00:17:51 +0000
commit98a3b8cf6531220c5ecfe124ebfe7d29deb1251b (patch)
tree0a46be6675f8ff54a7e53dd871c642235fd0726d /db
parent201f52201f5dd9701e7a8ceaa0ec4d344e69e022 (diff)
downloadleveldb-98a3b8cf6531220c5ecfe124ebfe7d29deb1251b.tar.gz
change const to constexpr
PiperOrigin-RevId: 307113877
Diffstat (limited to 'db')
-rw-r--r--db/skiplist_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/db/skiplist_test.cc b/db/skiplist_test.cc
index 7c5d09b..9c70c5b 100644
--- a/db/skiplist_test.cc
+++ b/db/skiplist_test.cc
@@ -151,7 +151,7 @@ TEST(SkipTest, InsertAndLookup) {
// been concurrently added since the iterator started.
class ConcurrentTest {
private:
- static const uint32_t K = 4;
+ static constexpr uint32_t K = 4;
static uint64_t key(Key key) { return (key >> 40); }
static uint64_t gen(Key key) { return (key >> 8) & 0xffffffffu; }
@@ -280,7 +280,6 @@ class ConcurrentTest {
}
}
};
-const uint32_t ConcurrentTest::K;
// Simple test that does single-threaded testing of the ConcurrentTest
// scaffolding.