aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2020-05-01 21:34:42 +1000
committerZufu Liu <unknown>2020-05-01 21:34:42 +1000
commit499580484e1131a80bcc1ff6bc5784ac251c2253 (patch)
treef93d8899d6e7f4e6087afe326bab5308240218db /src/PositionCache.cxx
parent92d19750ac05db0eed408298b7fdc19fa7396305 (diff)
downloadscintilla-mirror-499580484e1131a80bcc1ff6bc5784ac251c2253.tar.gz
Make lambdas noexcept.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 8cdbb4f3d..7452a0f29 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -321,7 +321,7 @@ size_t ScreenLine::Length() const {
size_t ScreenLine::RepresentationCount() const {
return std::count_if(&ll->bidiData->widthReprs[start],
&ll->bidiData->widthReprs[start + len],
- [](XYPOSITION w) {return w > 0.0f; });
+ [](XYPOSITION w) noexcept { return w > 0.0f; });
}
XYPOSITION ScreenLine::Width() const {