aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-26 15:40:37 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-26 15:40:37 +1100
commitf96ffc423d8af568c0f1dc066a4adbec54d49bdb (patch)
tree457f7781c3e87345d13ec9734e5497d3d8134990 /src/PositionCache.cxx
parenta74c58f96fb97cfaa92e347bfe7e45e58d72558b (diff)
downloadscintilla-mirror-f96ffc423d8af568c0f1dc066a4adbec54d49bdb.tar.gz
Minor changes: const, constexpr, and noexcept.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx4
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);
}