aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-14 13:42:24 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-14 13:42:24 +1000
commit9948c490832acd4d211070adfef982d1c0e8b4c4 (patch)
treebcc9fba58f0b071736ddfb61c60d8854349df24d /src/ScintillaBase.cxx
parent793a375153519ae45ca8b3c9645fee347160d1a4 (diff)
downloadscintilla-mirror-9948c490832acd4d211070adfef982d1c0e8b4c4.tar.gz
Modernize Platform.h (1) - noexcept, const, standard methods.
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index f24e7ca6f..71f42d856 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -275,7 +275,7 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list
Redraw();
pt = PointMainCaret();
}
- if (wMargin.GetID()) {
+ if (wMargin.Created()) {
const Point ptOrigin = GetVisibleOriginInMain();
pt.x += ptOrigin.x;
pt.y += ptOrigin.y;
@@ -294,7 +294,7 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list
}
rcac.right = rcac.left + widthLB;
rcac.bottom = static_cast<XYPOSITION>(std::min(static_cast<int>(rcac.top) + heightLB, static_cast<int>(rcPopupBounds.bottom)));
- ac.lb->SetPositionRelative(rcac, wMain);
+ ac.lb->SetPositionRelative(rcac, &wMain);
ac.lb->SetFont(vs.styles[STYLE_DEFAULT].font);
const unsigned int aveCharWidth = static_cast<unsigned int>(vs.styles[STYLE_DEFAULT].aveCharWidth);
ac.lb->SetAverageCharWidth(aveCharWidth);
@@ -318,7 +318,7 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list
rcList.top = pt.y + vs.lineHeight;
}
rcList.bottom = rcList.top + heightAlloced;
- ac.lb->SetPositionRelative(rcList, wMain);
+ ac.lb->SetPositionRelative(rcList, &wMain);
ac.Show(true);
if (lenEntered != 0) {
AutoCompleteMoveToCurrentWord();
@@ -462,7 +462,7 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {
if (ct.UseStyleCallTip()) {
ct.SetForeBack(vs.styles[STYLE_CALLTIP].fore, vs.styles[STYLE_CALLTIP].back);
}
- if (wMargin.GetID()) {
+ if (wMargin.Created()) {
const Point ptOrigin = GetVisibleOriginInMain();
pt.x += ptOrigin.x;
pt.y += ptOrigin.y;
@@ -492,7 +492,7 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {
}
// Now display the window.
CreateCallTipWindow(rc);
- ct.wCallTip.SetPositionRelative(rc, wMain);
+ ct.wCallTip.SetPositionRelative(rc, &wMain);
ct.wCallTip.Show();
}