diff options
| author | Neil <nyamatongwe@gmail.com> | 2023-03-27 09:29:48 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2023-03-27 09:29:48 +1100 |
| commit | 765390e6db2b69976448e92d9a86516ead9b0c09 (patch) | |
| tree | eb01e21aae213bc8422ffdee8c99e4521c28dde8 /src/CallTip.cxx | |
| parent | 481b5651df9bd160d4ff1f1ba471eead61a53252 (diff) | |
| download | scintilla-mirror-765390e6db2b69976448e92d9a86516ead9b0c09.tar.gz | |
Declare const where possible.
Diffstat (limited to 'src/CallTip.cxx')
| -rw-r--r-- | src/CallTip.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 4742f66e4..eea592489 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -108,14 +108,14 @@ void DrawArrow(Surface *surface, const PRectangle &rc, bool upArrow, ColourRGBA constexpr XYPOSITION pixelMove = 0.0f; if (upArrow) { // Up arrow - Point pts[] = { + const Point pts[] = { Point(centreX - halfWidth + pixelMove, centreY + quarterWidth + 0.5f), Point(centreX + halfWidth + pixelMove, centreY + quarterWidth + 0.5f), Point(centreX + pixelMove, centreY - halfWidth + quarterWidth + 0.5f), }; surface->Polygon(pts, std::size(pts), FillStroke(colourBG)); } else { // Down arrow - Point pts[] = { + const Point pts[] = { Point(centreX - halfWidth + pixelMove, centreY - quarterWidth + 0.5f), Point(centreX + halfWidth + pixelMove, centreY - quarterWidth + 0.5f), Point(centreX + pixelMove, centreY + halfWidth - quarterWidth + 0.5f), |
