summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-04-26 21:04:01 +0100
committerJan Holesovsky <kendy@collabora.com>2018-04-27 09:17:21 +0200
commit909d104b9e144f42087783acda6e71b1c1e54290 (patch)
treea9357db8851bf26adc403a4a25db726c636f300a
parent108bbd078c7b91fabc8cb2eb1976fe8973493193 (diff)
Fix OSL_ENSURE invocations.
Change-Id: Ic217a75276956f200eaa539da0f5c06475106d0a Reviewed-on: https://gerrit.libreoffice.org/53540 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--sw/source/uibase/shells/textsh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 3d0172219d11..5a04e358dcd2 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -531,9 +531,9 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
case FN_FORMAT_COLUMN :
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
- OSL_ENSURE(pFact && "Dialog creation failed!");
+ OSL_ENSURE(pFact, "Dialog creation failed!");
VclPtr<VclAbstractDialog> pColDlg(pFact->CreateVclAbstractDialog( GetView().GetWindow(), rSh, DLG_COLUMN));
- assert(pColDlg && "Dialog creation failed!");
+ OSL_ENSURE(pColDlg, "Dialog creation failed!");
pColDlg->StartExecuteAsync([](sal_Int32 /*nResult*/){});
}
break;