forms/source/helper/windowstateguard.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 78dfcd5f5dd14afc197824042a5ecbe2404f359f Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Mon Feb 23 15:37:57 2026 +0100 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Thu Feb 26 09:35:41 2026 +0100 Remove bogus assertion Comparison can fail for the same object due to UNO multiple inheritance. Fixes warnings like: warn:legacy.osl:1662530:1662530:forms/source/helper/windowstateguard.cxx:184: WindowStateGuard_Impl::disposing: where does this come from? Change-Id: I89de2832f61927dd8a6ee1762b3363a9cfe3a923 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200062 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <[email protected]> Reviewed-by: Noel Grandin <[email protected]> diff --git a/forms/source/helper/windowstateguard.cxx b/forms/source/helper/windowstateguard.cxx index 99bc71b1353a..3f1130703dd1 100644 --- a/forms/source/helper/windowstateguard.cxx +++ b/forms/source/helper/windowstateguard.cxx @@ -179,9 +179,8 @@ namespace frm } - void SAL_CALL WindowStateGuard_Impl::disposing( const EventObject& Source ) + void SAL_CALL WindowStateGuard_Impl::disposing( const EventObject& /*Source*/ ) { - OSL_ENSURE( Source.Source == m_xWindow, "WindowStateGuard_Impl::disposing: where does this come from?" ); dispose(); }
