diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-12-08 18:06:36 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-12-09 00:18:51 +0530 |
commit | 0898ced81a3129b4c36c08e0222f96c513f0fd77 (patch) | |
tree | 7f18c01276eb7e67a0f5bd7065dc2c75ce0fae3a /vcl | |
parent | 782f8be6d4076b0152442e6200426010c1f6704f (diff) |
Use ImplIsFloatingWindow instead of dynamic_cast
Change-Id: I09f351ae5d8d1b5c1a405d7aa8082be6014268b3
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 3c56d46e6efc..fecc5530202c 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3235,7 +3235,7 @@ void Window::LogicMouseButtonDown(const MouseEvent& rMouseEvent) // When we're not doing tiled rendering, then positions must be passed as pixels. assert(comphelper::LibreOfficeKit::isActive()); - if (dynamic_cast<FloatingWindow*>(this) != nullptr) + if (ImplIsFloatingWindow()) ImplWindowFrameProc(ImplGetBorderWindow(), SalEvent::ExternalMouseButtonDown, &rMouseEvent); else ImplWindowFrameProc(this, SalEvent::ExternalMouseButtonDown, &rMouseEvent); @@ -3246,7 +3246,7 @@ void Window::LogicMouseButtonUp(const MouseEvent& rMouseEvent) // When we're not doing tiled rendering, then positions must be passed as pixels. assert(comphelper::LibreOfficeKit::isActive()); - if (dynamic_cast<FloatingWindow*>(this) != nullptr) + if (ImplIsFloatingWindow()) ImplWindowFrameProc(ImplGetBorderWindow(), SalEvent::ExternalMouseButtonUp, &rMouseEvent); else ImplWindowFrameProc(this, SalEvent::ExternalMouseButtonUp, &rMouseEvent); @@ -3257,7 +3257,7 @@ void Window::LogicMouseMove(const MouseEvent& rMouseEvent) // When we're not doing tiled rendering, then positions must be passed as pixels. assert(comphelper::LibreOfficeKit::isActive()); - if (dynamic_cast<FloatingWindow*>(this) != nullptr) + if (ImplIsFloatingWindow()) ImplWindowFrameProc(ImplGetBorderWindow(), SalEvent::ExternalMouseMove, &rMouseEvent); else ImplWindowFrameProc(this, SalEvent::ExternalMouseMove, &rMouseEvent); |