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/LineMarker.cxx | |
parent | 4840ebf15e51588a3e2f6caf16832ae83ffb9717 (diff) | |
download | scintilla-mirror-f99432484eb77df0d0ea1871ed34ffb74b501fba.tar.gz |
Add noexcept and constexpr where reasonable.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 5bfb89307..df8c3d55a 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -326,7 +326,7 @@ void LineMarker::DrawFoldingMark(Surface *surface, const PRectangle &rcWhole, Fo void LineMarker::AlignedPolygon(Surface *surface, const Point *pts, size_t npts) const { const XYPOSITION move = strokeWidth / 2.0; std::vector<Point> points; - std::transform(pts, pts + npts, std::back_inserter(points), [=](Point pt)->Point { + std::transform(pts, pts + npts, std::back_inserter(points), [=](Point pt) noexcept ->Point { return Point(pt.x + move, pt.y + move); }); surface->Polygon(points.data(), std::size(points), FillStroke(back, fore, strokeWidth)); |