diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-05 16:49:57 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-26 00:10:30 +0200 |
commit | 1e65f0f3396d5d7eaa8e8dd3668dfa180b541c18 (patch) | |
tree | 43cde6e010c80c898d49c7670ed9a63826c4e9b2 /src/chain.h | |
parent | 1caafa6cde3b88d926611771f9b4c06fcc6e0007 (diff) |
Use compile-time constants instead of unnamed enumerations (remove "enum hack")
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.h b/src/chain.h index c5304b7d6f..d2b031dae7 100644 --- a/src/chain.h +++ b/src/chain.h @@ -304,7 +304,7 @@ public: return (int64_t)nTimeMax; } - enum { nMedianTimeSpan=11 }; + static constexpr int nMedianTimeSpan = 11; int64_t GetMedianTimePast() const { |