diff options
Diffstat (limited to 'idl/source/objects/module.cxx')
-rw-r--r-- | idl/source/objects/module.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index ad339b7c6055..e501939679de 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -43,10 +43,7 @@ void SvMetaModule::ReadAttributesSvIdl( SvIdlDataBase & rBase, sal_uInt32 nTokPos = rInStm.Tell(); if( !rBase.ReadIdFile( OStringToOUString(aSlotIdFile, RTL_TEXTENCODING_ASCII_US)) ) { - OStringBuffer aStr("cannot read file: "); - aStr.append(aSlotIdFile); - rBase.SetError( aStr.makeStringAndClear(), rInStm.GetToken() ); - rBase.WriteError( rInStm ); + rBase.SetAndWriteError( rInStm, "cannot read file: " + aSlotIdFile ); rInStm.Seek( nTokPos ); } |