diff options
Diffstat (limited to 'idl/source/objects/module.cxx')
-rw-r--r-- | idl/source/objects/module.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index 08b42adc6ce5..75af0cfc25a1 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -272,16 +272,20 @@ void SvMetaModule::ReadContextSvIdl( SvIdlDataBase & rBase, } else { - ByteString aStr = "cannot open file: "; - aStr += ByteString( aFullName.GetFull(), RTL_TEXTENCODING_UTF8 ); - rBase.SetError( aStr, pTok ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM( + "cannot open file: ")); + aStr.append(rtl::OUStringToOString(aFullName.GetFull(), + RTL_TEXTENCODING_UTF8)); + rBase.SetError(aStr.makeStringAndClear(), pTok); } } else { - ByteString aStr = "cannot find file: "; - aStr += ByteString( aFullName.GetFull(), RTL_TEXTENCODING_UTF8 ); - rBase.SetError( aStr, pTok ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM( + "cannot find file:")); + aStr.append(rtl::OUStringToOString(aFullName.GetFull(), + RTL_TEXTENCODING_UTF8)); + rBase.SetError(aStr.makeStringAndClear(), pTok); } } if( !bOk ) |