aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index cc7b09715..55c540145 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4457,7 +4457,7 @@ void Editor::DwellEnd(bool mouseMoved) {
}
void Editor::MouseLeave() {
- SetHotSpotRange(NULL);
+ SetHotSpotRange(nullptr);
if (!HaveMouseCapture()) {
ptMouseLast = Point(-1,-1);
DwellEnd(true);
@@ -4692,7 +4692,7 @@ void Editor::SetHoverIndicatorPoint(Point pt) {
}
}
-void Editor::SetHotSpotRange(Point *pt) {
+void Editor::SetHotSpotRange(const Point *pt) {
if (pt) {
Sci::Position pos = PositionFromLocation(*pt, false, true);
@@ -4812,7 +4812,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, int modifiers) {
EnsureCaretVisible(false, false, true);
if (hotspot.Valid() && !PointIsHotspot(pt))
- SetHotSpotRange(NULL);
+ SetHotSpotRange(nullptr);
if (hotSpotClickPos != INVALID_POSITION && PositionFromLocation(pt,true,true) != hotSpotClickPos) {
if (inDragDrop == ddNone) {
@@ -4825,7 +4825,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, int modifiers) {
if (vs.fixedColumnWidth > 0) { // There is a margin
if (PointInSelMargin(pt)) {
DisplayCursor(GetMarginCursor(pt));
- SetHotSpotRange(NULL);
+ SetHotSpotRange(nullptr);
return; // No need to test for selection
}
}
@@ -4842,7 +4842,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, int modifiers) {
DisplayCursor(Window::cursorHand);
else
DisplayCursor(Window::cursorText);
- SetHotSpotRange(NULL);
+ SetHotSpotRange(nullptr);
}
}
}
@@ -4872,7 +4872,7 @@ void Editor::ButtonUpWithModifiers(Point pt, unsigned int curTime, int modifiers
DisplayCursor(GetMarginCursor(pt));
} else {
DisplayCursor(Window::cursorText);
- SetHotSpotRange(NULL);
+ SetHotSpotRange(nullptr);
}
ptMouseLast = pt;
SetMouseCapture(false);