Guest User

Untitled

a guest
Jan 3rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. diff --git vcl/source/window/window.cxx vcl/source/window/window.cxx
  2. index cc8973d..a0771a1 100644
  3. --- vcl/source/window/window.cxx
  4. +++ vcl/source/window/window.cxx
  5. @@ -1395,7 +1395,7 @@ void Window::ImplSetReallyVisible()
  6. }
  7. }
  8.  
  9. -void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompatibility ok
  10. +void Window::ImplAddDel( ImplDelData* pDel ) const// TODO: make "const" when incompatibility ok
  11. {
  12. if ( IsDisposed() )
  13. {
  14. @@ -1406,7 +1406,7 @@ void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompat
  15. DBG_ASSERT( !pDel->mpWindow, "Window::ImplAddDel(): cannot add ImplDelData twice !" );
  16. if( !pDel->mpWindow )
  17. {
  18. - pDel->mpWindow = this; // #112873# store ref to this window, so pDel can remove itself
  19. + pDel->mpWindow = const_cast<vcl::Window*>(this); // #112873# store ref to this window, so pDel can remove itself
  20. pDel->mpNext = mpWindowImpl->mpFirstDel;
  21. mpWindowImpl->mpFirstDel = pDel;
  22. }
Add Comment
Please, Sign In to add comment