From 4523dd0544d762961435429167e41a0834b60cea Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 30 Jun 2014 09:13:14 +0100 Subject: Called C++ object pointer is null Change-Id: I88efc4be6ff869ef97a2b398d43f7b7914debfc6 --- sd/source/ui/app/sdmod1.cxx | 2 +- sd/source/ui/func/fuinsfil.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index b4d725649604..7ba47c463c84 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -664,7 +664,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) ::sd::ViewShellBase* pBase = ::sd::ViewShellBase::GetViewShellBase ( pViewFrame); - OSL_ASSERT (pBase!=NULL); + assert(pBase!=NULL); ::boost::shared_ptr pViewSh = pBase->GetMainViewShell(); SdOptions* pOptions = GetSdOptions(pDoc->GetDocumentType()); diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx index 4d172e02f431..7514812e1442 100644 --- a/sd/source/ui/func/fuinsfil.cxx +++ b/sd/source/ui/func/fuinsfil.cxx @@ -449,7 +449,7 @@ void FuInsertFile::InsTextOrRTFinDrMode(SfxMedium* pMedium) pOutliner->SetPaperSize(pPage->GetSize()); SvStream* pStream = pMedium->GetInStream(); - DBG_ASSERT( pStream, "No InStream!" ); + assert(pStream && "No InStream!"); pStream->Seek( 0 ); sal_uLong nErr = pOutliner->Read( *pStream, pMedium->GetBaseURL(), nFormat, mpDocSh->GetHeaderAttributes() ); @@ -469,7 +469,7 @@ void FuInsertFile::InsTextOrRTFinDrMode(SfxMedium* pMedium) pPage = (SdPage*)(&(pPage->TRG_GetMasterPage())); } - DBG_ASSERT(pPage, "page not found"); + assert(pPage && "page not found"); // if editing is going on right now, let it flow into this text object OutlinerView* pOutlinerView = mpView->GetTextEditOutlinerView(); -- cgit