From f9e6d195dbbf0b2effa10f69f4c99fce6e2b186b Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Sun, 15 Jan 2012 11:30:24 +0100 Subject: Replaced diagnore ENSURE_OR_BREAK with regular code. --- basctl/source/basicide/basobj2.cxx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index 646c40c5d9ed..36ee590f69f2 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -305,13 +305,25 @@ namespace break; SbModule* pModule = pMethod->GetModule(); - ENSURE_OR_BREAK( pModule, "BasicIDE::ChooseMacro: No Module found!" ); + if ( !pModule ) + { + SAL_WARN( "basctl.basicide", "BasicIDE::ChooseMacro: No Module found!" ); + break; + } StarBASIC* pBasic = dynamic_cast(pModule->GetParent()); - ENSURE_OR_BREAK( pBasic, "BasicIDE::ChooseMacro: No Basic found!" ); + if ( !pBasic ) + { + SAL_WARN( "basctl.basicide", "BasicIDE::ChooseMacro: No Basic found!" ); + break; + } BasicManager* pBasMgr = BasicIDE::FindBasicManager( pBasic ); - ENSURE_OR_BREAK( pBasMgr, "BasicIDE::ChooseMacro: No BasicManager found!" ); + if ( !pBasMgr ) + { + SAL_WARN( "basctl.basicide", "BasicIDE::ChooseMacro: No BasicManager found!" ); + break; + } // name String aName; -- cgit