vcl/source/window/window.cxx | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-)
New commits: commit c0eee433e079d8e3413f4691607e075b99af92b0 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Tue Dec 29 10:45:50 2020 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Tue Dec 29 23:28:48 2020 +0100 Expand macro COMPAT_BODY in vcl Change-Id: I598ba7a6f8c51958d8130448529d21073004aad6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108448 Tested-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index cc3899e8fa4d..81dbbf63670c 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3900,30 +3900,36 @@ void Window::RequestDoubleBuffering(bool bRequest) * dispose and this altered a lot of code paths, that * are better left unchanged for now. */ -#define COMPAT_BODY(method,args) \ - if (!mpWindowImpl || mpWindowImpl->mbInDispose) \ - Window::method args; \ - else \ - method args; - void Window::CompatGetFocus() { - COMPAT_BODY(GetFocus,()) + if (!mpWindowImpl || mpWindowImpl->mbInDispose) + Window::GetFocus(); + else + GetFocus(); } void Window::CompatLoseFocus() { - COMPAT_BODY(LoseFocus,()) + if (!mpWindowImpl || mpWindowImpl->mbInDispose) + Window::LoseFocus(); + else + LoseFocus(); } void Window::CompatStateChanged( StateChangedType nStateChange ) { - COMPAT_BODY(StateChanged,(nStateChange)) + if (!mpWindowImpl || mpWindowImpl->mbInDispose) + Window::StateChanged(nStateChange); + else + StateChanged(nStateChange); } void Window::CompatDataChanged( const DataChangedEvent& rDCEvt ) { - COMPAT_BODY(DataChanged,(rDCEvt)) + if (!mpWindowImpl || mpWindowImpl->mbInDispose) + Window::DataChanged(rDCEvt); + else + DataChanged(rDCEvt); } bool Window::CompatPreNotify( NotifyEvent& rNEvt ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits