diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 15:24:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 16:54:54 +0100 |
commit | 2c0831ebbf940833c3fecc66abd1ce0f3a29cd10 (patch) | |
tree | 2915f157a0857d3158b94e8dcdbcb97879106fb5 /vcl/source/gdi/bitmapex.cxx | |
parent | 2f33cf5115df156cc17f6218ca42ca367cd32cf4 (diff) |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'vcl/source/gdi/bitmapex.cxx')
-rw-r--r-- | vcl/source/gdi/bitmapex.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx index 584eacf2c360..0db0df76427e 100644 --- a/vcl/source/gdi/bitmapex.cxx +++ b/vcl/source/gdi/bitmapex.cxx @@ -32,6 +32,7 @@ #include <ctype.h> #include <rtl/crc.h> +#include <rtl/strbuf.hxx> #include <tools/stream.hxx> #include <tools/debug.hxx> @@ -112,8 +113,10 @@ BitmapEx::BitmapEx( const ResId& rResId ) : if( !aImageTree->loadImage( aFileName, aCurrentSymbolsStyle, *this, true ) ) { #ifdef DBG_UTIL - ByteString aErrorStr( "BitmapEx::BitmapEx( const ResId& rResId ): could not load image <" ); - OSL_FAIL( ( ( aErrorStr += ByteString( aFileName, RTL_TEXTENCODING_ASCII_US ) ) += '>' ).GetBuffer() ); + rtl::OStringBuffer aErrorStr(RTL_CONSTASCII_STRINGPARAM( + "BitmapEx::BitmapEx( const ResId& rResId ): could not load image <")); + aErrorStr.append(rtl::OUStringToOString(aFileName, RTL_TEXTENCODING_ASCII_US)).append('>'); + OSL_FAIL(aErrorStr.getStr()); #endif } } |