diff options
author | Zufu Liu <unknown> | 2021-09-17 07:38:35 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-09-17 07:38:35 +1000 |
commit | f99432484eb77df0d0ea1871ed34ffb74b501fba (patch) | |
tree | d841e4a9769d9ad348de211ca24c79ee944fff64 /src/ViewStyle.cxx | |
parent | 4840ebf15e51588a3e2f6caf16832ae83ffb9717 (diff) | |
download | scintilla-mirror-f99432484eb77df0d0ea1871ed34ffb74b501fba.tar.gz |
Add noexcept and constexpr where reasonable.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index c375bffab..0288a430a 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -554,7 +554,7 @@ ColourRGBA ViewStyle::WrapColour() const { void ViewStyle::AddMultiEdge(int column, ColourRGBA colour) { theMultiEdge.insert( std::upper_bound(theMultiEdge.begin(), theMultiEdge.end(), column, - [](const EdgeProperties &a, const EdgeProperties &b) { + [](const EdgeProperties &a, const EdgeProperties &b) noexcept { return a.column < b.column; }), EdgeProperties(column, colour)); |