summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-08-16 12:17:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-08-16 14:41:18 +0200
commit84fbb174d6c773ecd284398a9dc4fee9f142a193 (patch)
tree3ea7e117b0f5f65e7b954beaaef2bc136da7e930 /framework/source
parent13971f0619192deb3f1f1cf5ff30f9671ed25a38 (diff)
Drop redundant warning after throwing check
Change-Id: I1cc9ce6c415eb8aef9a250b3b5f342a425071b54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138349 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/services/frame.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index d722b5e0b98d..c2efdecd50ca 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -765,15 +765,14 @@ void SAL_CALL XFrameImpl::initialize( const css::uno::Reference< css::awt::XWind
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
SolarMutexResettableGuard aWriteLock;
+ // This must be the first call of this method!
+ // We should initialize our object and open it for working.
if ( m_xContainerWindow.is() )
throw css::uno::RuntimeException(
"XFrameImpl::initialized() is called more than once, which is not useful nor allowed.",
static_cast< css::frame::XFrame* >(this));
- // This must be the first call of this method!
- // We should initialize our object and open it for working.
// Set the new window.
- SAL_WARN_IF( m_xContainerWindow.is(), "fwk.frame", "XFrameImpl::initialize(): Leak detected! This state should never occur ..." );
m_xContainerWindow = xWindow;
// if window is initially visible, we will never get a windowShowing event