diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:43:16 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:12:37 +0100 |
commit | 7d669e4cdc6ddcb680ffb4f05b18a8925a76a6b0 (patch) | |
tree | 60c7573fef5c6868ef98cdea125d6e0ddc76dd57 /oox/source/ole/vbamodule.cxx | |
parent | d4ebec5c7950c2558c8efe873288e078f5d8ad31 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'oox/source/ole/vbamodule.cxx')
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 1043b59b65f4..c95ffaef7c9f 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -147,7 +147,7 @@ void VbaModule::importDirRecords( BinaryInputStream& rDirStrm ) { #define OOX_ENSURE_RECORDSIZE( cond ) OSL_ENSURE( cond, "VbaModule::importDirRecords - invalid record size" ) case VBA_ID_MODULENAME: - OSL_ENSURE( false, "VbaModule::importDirRecords - unexpected MODULENAME record" ); + OSL_FAIL( "VbaModule::importDirRecords - unexpected MODULENAME record" ); maName = aRecStrm.readCharArrayUC( nRecSize, meTextEnc ); break; case VBA_ID_MODULENAMEUNICODE: @@ -191,7 +191,7 @@ void VbaModule::importDirRecords( BinaryInputStream& rDirStrm ) mbPrivate = true; break; default: - OSL_ENSURE( false, "VbaModule::importDirRecords - unknown module record" ); + OSL_FAIL( "VbaModule::importDirRecords - unknown module record" ); #undef OOX_ENSURE_RECORDSIZE } } @@ -353,7 +353,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, } catch( Exception& ) { - OSL_ENSURE( false, "VbaModule::createModule - cannot insert module into library" ); + OSL_FAIL( "VbaModule::createModule - cannot insert module into library" ); } } |