diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2018-04-26 21:04:01 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-20 11:56:27 +0200 |
commit | d2bd5c409a2b6051afabe0b7f21c8cde4554ec5d (patch) | |
tree | 0c70513ecdbe703b12c8dc37923cdefe7d1ec27d | |
parent | 006ad3e8de79d4afa8bd004692cbd8f6710b45a7 (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>
(cherry picked from commit 909d104b9e144f42087783acda6e71b1c1e54290)
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 4 |
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; |