diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-26 15:40:37 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-26 15:40:37 +1100 |
commit | f96ffc423d8af568c0f1dc066a4adbec54d49bdb (patch) | |
tree | 457f7781c3e87345d13ec9734e5497d3d8134990 /src/PositionCache.cxx | |
parent | a74c58f96fb97cfaa92e347bfe7e45e58d72558b (diff) | |
download | scintilla-mirror-f96ffc423d8af568c0f1dc066a4adbec54d49bdb.tar.gz |
Minor changes: const, constexpr, and noexcept.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 7e3459e5f..50858edd7 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -493,7 +493,7 @@ static unsigned int KeyFromString(const char *charBytes, size_t len) noexcept { } SpecialRepresentations::SpecialRepresentations() { - const short none = 0; + constexpr short none = 0; std::fill(startByteHasReprs, std::end(startByteHasReprs), none); } @@ -540,7 +540,7 @@ bool SpecialRepresentations::Contains(const char *charBytes, size_t len) const { void SpecialRepresentations::Clear() { mapReprs.clear(); - const short none = 0; + constexpr short none = 0; std::fill(startByteHasReprs, std::end(startByteHasReprs), none); } |