summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-10-22 11:52:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-22 11:52:41 +0200
commit4e7ffc0a69dac31ca7e0f1649f1697a1ff8d6e5f (patch)
treedac07646ee4f43135124675beaac6a0d79b648bb /vcl/source/app/svapp.cxx
parent66b1854252ff29a16babff099b038c8e5c9ec969 (diff)
Avoid compiler eliding redundant dynamic_cast
...from vcl::Window to itself. This relies on vcl::Window deriving solely from OutputDevice. Change-Id: I530108ff41d2c141a88e9ec9d9d6929abc773c0d
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r--vcl/source/app/svapp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 77394497ed18..747c70a0ae95 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1004,7 +1004,7 @@ ImplSVEvent * Application::PostUserEvent( const Link<void*,void>& rLink, void* p
SolarMutexGuard aGuard;
// Double check that this is indeed a vcl::Window instance.
assert(dynamic_cast<vcl::Window *>(
- static_cast<vcl::Window *>(rLink.GetInstance())) ==
+ static_cast<OutputDevice *>(rLink.GetInstance())) ==
static_cast<vcl::Window *>(rLink.GetInstance()));
pSVEvent->mpInstanceRef = static_cast<vcl::Window *>(rLink.GetInstance());
}