summaryrefslogtreecommitdiff
path: root/sw/inc/txtfld.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-07-06 23:21:51 +0200
committerMichael Stahl <mstahl@redhat.com>2017-07-07 13:48:29 +0200
commit0a710a098e65a5e83c1ea47d5bdc1b56ef48f314 (patch)
tree8552401dc826127c567f1bf178bd21b12380df0d /sw/inc/txtfld.hxx
parentc113d386888152632ae26fae9f59faf4f1d2f2dc (diff)
sw: convert SwTextInputField OSL_ENSUREs to assert() and simplify
Change-Id: I86df59e4b77d2ddc479144f32342113a6e29a725
Diffstat (limited to 'sw/inc/txtfld.hxx')
-rw-r--r--sw/inc/txtfld.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/txtfld.hxx b/sw/inc/txtfld.hxx
index e389b4725ad8..edd23e06c736 100644
--- a/sw/inc/txtfld.hxx
+++ b/sw/inc/txtfld.hxx
@@ -24,6 +24,7 @@
#include <osl/diagnose.h>
#include <memory>
+#include <cassert>
class SwPaM;
class SwTextNode;
@@ -52,7 +53,7 @@ public:
}
SwTextNode& GetTextNode() const
{
- OSL_ENSURE( m_pTextNode, "SwTextField:: where is my TextNode?" );
+ assert(m_pTextNode);
return *m_pTextNode;
}
void ChgTextNode( SwTextNode* pNew )