summaryrefslogtreecommitdiff
path: root/sw/source/uibase/index
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-03 08:51:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-03 12:49:38 +0100
commit4228f08d6084d8563b70a26a6398fb0caf017f99 (patch)
tree2f91cb13231f0de1e514dd545e0910b830589fb4 /sw/source/uibase/index
parent6fe1e3af0e812d99e63677d9ead056357b37ecf7 (diff)
use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
Diffstat (limited to 'sw/source/uibase/index')
-rw-r--r--sw/source/uibase/index/idxmrk.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/index/idxmrk.cxx b/sw/source/uibase/index/idxmrk.cxx
index f81f63b7ee3d..306f55448e69 100644
--- a/sw/source/uibase/index/idxmrk.cxx
+++ b/sw/source/uibase/index/idxmrk.cxx
@@ -61,9 +61,9 @@ SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window *pParentWindow,
SfxChildWindow(pParentWindow, nId)
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
- OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
+ assert(pFact && "SwAbstractDialogFactory fail!");
pAbstDlg = pFact->CreateIndexMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
- OSL_ENSURE(pAbstDlg, "Dialogdiet fail!");
+ assert(pAbstDlg && "Dialogdiet fail!");
pWindow = pAbstDlg->GetWindow();
pWindow->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
// -> Show() will invoke StateChanged() and save pos