aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-06-04 14:46:14 +1000
committerNeil <nyamatongwe@gmail.com>2018-06-04 14:46:14 +1000
commitcc2ef371b2402396be6d5f5169e51e15dbd03a60 (patch)
tree27bdb057cbb0d1074149cb3a54811fa91519c247 /src/PerLine.cxx
parent13b2cba2ce2deb287d97a2d39e51d04934f55e91 (diff)
downloadscintilla-mirror-cc2ef371b2402396be6d5f5169e51e15dbd03a60.tar.gz
Reduce scope of captures for lambdas.
Use noexcept.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index d76c01d54..3dfdffe5c 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -61,7 +61,7 @@ bool MarkerHandleSet::InsertHandle(int handle, int markerNum) {
}
void MarkerHandleSet::RemoveHandle(int handle) {
- mhList.remove_if([=](const MarkerHandleNumber &mhn) { return mhn.handle == handle; });
+ mhList.remove_if([handle](const MarkerHandleNumber &mhn) { return mhn.handle == handle; });
}
bool MarkerHandleSet::RemoveNumber(int markerNum, bool all) {
@@ -285,7 +285,7 @@ Sci::Line LineState::GetMaxLineState() const {
return static_cast<Sci::Line>(lineStates.Length());
}
-static int NumberLines(const char *text) {
+static int NumberLines(const char *text) noexcept {
if (text) {
int newLines = 0;
while (*text) {