diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-14 14:13:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 14:13:13 +1000 |
commit | c4aa7826f3d2178e39e5bff2f6886d7d3d3f46d7 (patch) | |
tree | e5f93f314c700da99e6c54f590d034645c73a111 /src/CallTip.cxx | |
parent | 3fc8c97d80a6797e60e6b203c9b4aa9d553df8a7 (diff) | |
download | scintilla-mirror-c4aa7826f3d2178e39e5bff2f6886d7d3d3f46d7.tar.gz |
Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t for
Polygon and delete the standard copy and assignment methods.
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 1b40c185d..2eab1146f 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -135,14 +135,14 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s, Point::FromInts(centreX + halfWidth, centreY + quarterWidth), Point::FromInts(centreX, centreY - halfWidth + quarterWidth), }; - surface->Polygon(pts, ELEMENTS(pts), colourBG, colourBG); + surface->Polygon(pts, std::size(pts), colourBG, colourBG); } else { // Down arrow Point pts[] = { Point::FromInts(centreX - halfWidth, centreY - quarterWidth), Point::FromInts(centreX + halfWidth, centreY - quarterWidth), Point::FromInts(centreX, centreY + halfWidth - quarterWidth), }; - surface->Polygon(pts, ELEMENTS(pts), colourBG, colourBG); + surface->Polygon(pts, std::size(pts), colourBG, colourBG); } } offsetMain = xEnd; |