summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2012-01-15 11:30:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-23 23:28:46 +0100
commitf9e6d195dbbf0b2effa10f69f4c99fce6e2b186b (patch)
treed79d0e06993af15e44c7b00c94cbc1d6fac470b2 /basctl
parente384f241554a1157137b6121a064f75308b2ba10 (diff)
Replaced diagnore ENSURE_OR_BREAK with regular code.
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basobj2.cxx18
1 files changed, 15 insertions, 3 deletions
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<StarBASIC*>(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;