summaryrefslogtreecommitdiff
path: root/sw/inc/swrect.hxx
diff options
context:
space:
mode:
authorHonza Havlíček <havlicek.honza@gmail.com>2013-07-27 03:14:27 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-07-30 13:45:03 +0000
commitd7b48d03e19d2c05ecf2143b1547ceab5ab89e5c (patch)
tree3a5b49e0f660c3e99321cd268eae1bec68b3a855 /sw/inc/swrect.hxx
parent5f7860bc2735bad3cd27552867ce25096835dcbb (diff)
fdo#43157 - Clean up OSL_ENSURE
Change-Id: I5ba15eaa82479aa68b98ce4dcd7827f31b239c98 Reviewed-on: https://gerrit.libreoffice.org/5139 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sw/inc/swrect.hxx')
-rw-r--r--sw/inc/swrect.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 62e521865a24..efe7edf4e8bf 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -18,7 +18,7 @@
*/
#ifndef _SWRECT_HXX
#define _SWRECT_HXX
-#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <tools/gen.hxx>
class SvStream;
@@ -296,7 +296,7 @@ inline SwRect &SwRect::operator-=( const Size &rSz )
// other
inline Rectangle SwRect::SVRect() const
{
- OSL_ENSURE( !IsEmpty(), "SVRect() without Width or Height" );
+ SAL_WARN_IF( IsEmpty(), "sw", "SVRect() without Width or Height" );
return Rectangle( m_Point.getX(), m_Point.getY(),
m_Point.getX() + m_Size.getWidth() - 1, //Right()
m_Point.getY() + m_Size.getHeight() - 1 ); //Bottom()