diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-18 19:22:38 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-18 19:22:38 +1100 |
| commit | 983d5165878df0190964a8f903c24055f9144612 (patch) | |
| tree | 8f88b9eecbb4ee07725af5bafed081c68a453016 /win32/PlatWin.cxx | |
| parent | b52af20e7318e19b2becf5b191d22d6ccb7139b2 (diff) | |
| download | scintilla-mirror-983d5165878df0190964a8f903c24055f9144612.tar.gz | |
Add some operators to Point to simplify client code.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 093dd0950..e407bd630 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2797,9 +2797,7 @@ void ListBoxX::ResizeToCursor() { PRectangle rc = GetPosition(); POINT ptw; ::GetCursorPos(&ptw); - Point pt = Point::FromInts(ptw.x, ptw.y); - pt.x += dragOffset.x; - pt.y += dragOffset.y; + const Point pt = Point::FromInts(ptw.x, ptw.y) + dragOffset; switch (resizeHit) { case HTLEFT: |
