diff options
author | mitchell <unknown> | 2020-01-05 21:22:02 -0500 |
---|---|---|
committer | mitchell <unknown> | 2020-01-05 21:22:02 -0500 |
commit | 60e87889d6438e386acf58c3967fb874af9aae82 (patch) | |
tree | 9c5c2660c59aff04ddedea19fa03fd271f8bba5c /src/CallTip.cxx | |
parent | dbb7374c185718655dd77c294eb281e8b93c538e (diff) | |
download | scintilla-mirror-60e87889d6438e386acf58c3967fb874af9aae82.tar.gz |
Added Sci::make_unique() and Sci::size() for better compatibility with the default branch.
std::make_unique() is c++14 and std::size() is c++17.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r-- | src/CallTip.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 18c4549bb..db66878ce 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -21,7 +21,6 @@ #include "Scintilla.h" -#include "StringCopy.h" #include "Position.h" #include "IntegerRectangle.h" #include "CallTip.h" @@ -135,14 +134,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, Sci::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, Sci::size(pts), colourBG, colourBG); } } offsetMain = xEnd; |