diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-17 12:03:50 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-21 17:01:53 +0000 |
commit | 28aaa27438fb3a743792ce821ba1f523a5d9947f (patch) | |
tree | 2c36ac03b468cc484833a6c350616fdf96a3b96b /starmath/source/accessibility.cxx | |
parent | 3d952e795a2101d2bfd2c0dcd6047049c38e6f54 (diff) |
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I removed all the OSL_DEBUG_LEVEL > 1 conditionals and also
made SAL_WARN open to production code which was earlier under
OSL_DEBUG_LEVEL > 0
Change-Id: Ibe71defed9a7191ec8e4a934e746ef0f3ebd8b3a
Reviewed-on: https://gerrit.libreoffice.org/23065
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r-- | starmath/source/accessibility.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 17e8624e1ca2..93656c737ec8 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -240,10 +240,10 @@ awt::Size SAL_CALL SmGraphicAccessible::getSize() "mismatch of window parent and accessible parent" ); Size aSz( pWin->GetSizePixel() ); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); Size aSz2( aRect.Width, aRect.Height ); - OSL_ENSURE( aSz == aSz2, "mismatch in width" ); + assert(aSz == aSz2 && "mismatch in width" ); #endif return awt::Size( aSz.Width(), aSz.Height() ); } @@ -1718,10 +1718,10 @@ awt::Size SAL_CALL SmEditAccessible::getSize( ) "mismatch of window parent and accessible parent" ); Size aSz( pWin->GetSizePixel() ); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); Size aSz2( aRect.Width, aRect.Height ); - OSL_ENSURE( aSz == aSz2, "mismatch in width" ); + assert(aSz == aSz2 && "mismatch in width"); #endif return awt::Size( aSz.Width(), aSz.Height() ); } |