diff options
| -rw-r--r-- | src/Decoration.cxx | 6 | ||||
| -rw-r--r-- | src/PerLine.cxx | 4 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/src/Decoration.cxx b/src/Decoration.cxx index c5b00cbc1..2094bca1a 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -163,7 +163,7 @@ Decoration<POS> *DecorationList<POS>::Create(int indicator, Sci::Position length  template <typename POS>  void DecorationList<POS>::Delete(int indicator) {  	decorationList.erase(std::remove_if(decorationList.begin(), decorationList.end(), -		[=](const std::unique_ptr<Decoration<POS>> &deco) { +		[indicator](const std::unique_ptr<Decoration<POS>> &deco) {  		return deco->Indicator() == indicator;  	}), decorationList.end());  	current = nullptr; @@ -228,7 +228,7 @@ void DecorationList<POS>::DeleteRange(Sci::Position position, Sci::Position dele  template <typename POS>  void DecorationList<POS>::DeleteLexerDecorations() {  	decorationList.erase(std::remove_if(decorationList.begin(), decorationList.end(), -		[=](const std::unique_ptr<Decoration<POS>> &deco) { +		[](const std::unique_ptr<Decoration<POS>> &deco) {  		return deco->Indicator() < INDIC_CONTAINER;  	}), decorationList.end());  	current = nullptr; @@ -241,7 +241,7 @@ void DecorationList<POS>::DeleteAnyEmpty() {  		decorationList.clear();  	} else {  		decorationList.erase(std::remove_if(decorationList.begin(), decorationList.end(), -			[=](const std::unique_ptr<Decoration<POS>> &deco) { +			[](const std::unique_ptr<Decoration<POS>> &deco) {  			return deco->Empty();  		}), decorationList.end());  	} 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) { | 
