diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:29:14 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:12:11 +0100 |
commit | 5ad692096323fcdf03823352b70bb7e71660919c (patch) | |
tree | fd3b578bd023400fc9daeed37cad2dbe4a5c9004 /basctl | |
parent | 678cbfa572eacbbdbd989b0d7c39ac6d33583e2a (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/basobj3.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index a5b441cdb1ab..962f70254d72 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -167,7 +167,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const { if ( !rDocument.hasModule( rLibName, rOldName ) ) { - OSL_ENSURE( false, "BasicIDE::RenameModule: old module name is invalid!" ); + OSL_FAIL( "BasicIDE::RenameModule: old module name is invalid!" ); return false; } @@ -300,7 +300,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const xLimitToDocument.set( xScripts, UNO_QUERY ); if ( !xLimitToDocument.is() ) { - OSL_ENSURE( false, "BasicIDE::ChooseMacro: a script container which is no document!?" ); + OSL_FAIL( "BasicIDE::ChooseMacro: a script container which is no document!?" ); xLimitToDocument = rxLimitToDocument; } } diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 1bf6081c6f0c..42a6cd37f159 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -178,7 +178,7 @@ bool RenameDialog( Window* pErrorParent, const ScriptDocument& rDocument, const { if ( !rDocument.hasDialog( rLibName, rOldName ) ) { - OSL_ENSURE( false, "BasicIDE::RenameDialog: old module name is invalid!" ); + OSL_FAIL( "BasicIDE::RenameDialog: old module name is invalid!" ); return false; } diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 069fb87d9b82..5bb34af6a2fa 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -1134,7 +1134,7 @@ namespace basctl } } - OSL_ENSURE( false, "ScriptDocument::getDocumentForBasicManager: did not find a document for this manager!" ); + OSL_FAIL( "ScriptDocument::getDocumentForBasicManager: did not find a document for this manager!" ); return ScriptDocument( NoDocument ); } |