diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-30 16:38:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-30 16:42:43 +0200 |
commit | f8e34ea78a3159b3bf717353a3fc7d62e7fecd57 (patch) | |
tree | b8765cf1a074a1e82a8b088fa39c5f71c91d69e6 /vcl | |
parent | 4771c8836a3e4d5e8ac25a7212293a13fb1e73ba (diff) |
...and ~SystemWindow can recursively destroy its child windows
...so when the pMyParent vs. pMySysWin typos in the asserts (thanks Matteo and
Micheal for spotting) were fixed, they would fire in such scenarios. So just
hope that it is fine to effectively skip those safety checks in these cases,
too.
Change-Id: Ib925e57b68643c75a5d4db67fd64692015482179
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 4770d1a47f26..af060f2470b0 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -336,7 +336,6 @@ Window::~Window() if ( pMyParent->IsSystemWindow() ) { pMySysWin = dynamic_cast<SystemWindow *>(pMyParent); - assert(pMyParent != 0); } pMyParent = pMyParent->GetParent(); } @@ -361,7 +360,6 @@ Window::~Window() if ( pMyParent->IsSystemWindow() ) { pMySysWin = dynamic_cast<SystemWindow *>(pMyParent); - assert(pMyParent != 0); } pMyParent = pMyParent->GetParent(); } |