diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-01-28 15:56:58 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-30 14:19:55 +0100 |
commit | 47f9cb2930e5aa530e97f7600d8ef021db11c493 (patch) | |
tree | 78b73798b7a421116c6319d1f003ad3d0d27d9d2 | |
parent | 2817f07fdd942cea6574043971534bf089b527ce (diff) |
sw: these SAL_WARN_IF should be assert()
Change-Id: Ifddea3cd34f419d9b8b87a3f913be590ad4d5ce7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87705
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | sw/source/core/text/inftxt.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 94eb7de9f207..30888843626d 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -709,15 +709,13 @@ public: inline sal_uInt16 SwTextSizeInfo::GetAscent() const { - SAL_WARN_IF( !GetOut(), "sw.core", "SwTextSizeInfo::GetAscent() without m_pOut" ); - + assert(GetOut()); return const_cast<SwFont*>(GetFont())->GetAscent( m_pVsh, *GetOut() ); } inline sal_uInt16 SwTextSizeInfo::GetTextHeight() const { - SAL_WARN_IF( !GetOut(), "sw.core", "SwTextSizeInfo::GetTextHeight() without m_pOut" ); - + assert(GetOut()); return const_cast<SwFont*>(GetFont())->GetHeight( m_pVsh, *GetOut() ); } |