diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2013-01-08 21:02:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-09 09:37:58 +0100 |
commit | c26e2328ff09fecbf3fd74d41f0895555f118426 (patch) | |
tree | 33d94671c7f6fd26c41b87f25c2ef4b8a5534b72 /forms | |
parent | 4d1a877dbf74b8e6e5908bb2c0eec570a5fb3184 (diff) |
turn some OSL_ENSURE into SAL_WARN_IF to avoid warnings about unused variables
And one OSL_ASSERT too.
Change-Id: I51f0083b9b9336e80c3b6a898c295173ad48f77c
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/errorbroadcaster.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/errorbroadcaster.cxx b/forms/source/component/errorbroadcaster.cxx index 8c8baac66f34..a94efd6bc350 100644 --- a/forms/source/component/errorbroadcaster.cxx +++ b/forms/source/component/errorbroadcaster.cxx @@ -45,11 +45,11 @@ namespace frm //--------------------------------------------------------------------- OErrorBroadcaster::~OErrorBroadcaster( ) { - OSL_ENSURE( m_rBHelper.bDisposed || m_rBHelper.bInDispose, + SAL_WARN_IF( !m_rBHelper.bDisposed && !m_rBHelper.bInDispose, "forms", "OErrorBroadcaster::~OErrorBroadcaster: not disposed!" ); // herein, we don't have a chance to do the dispose ourself .... - OSL_ENSURE( 0 == m_aErrorListeners.getLength(), + SAL_WARN_IF( m_aErrorListeners.getLength(), "forms", "OErrorBroadcaster::~OErrorBroadcaster: still have listeners!" ); // either we're not disposed, or the derived class did not call our dispose from within their dispose } |