diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-22 09:02:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-22 15:01:04 +0100 |
commit | ac58231a01186d0935d0ff5fb2485d8750ed5022 (patch) | |
tree | 386ecb69491890ca62bd049a45bb7ee26e8dd5f5 /svtools/bmpmaker/bmpsum.cxx | |
parent | 8df9025eac81d8a65162c396d28d176c084d16b3 (diff) |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'svtools/bmpmaker/bmpsum.cxx')
-rw-r--r-- | svtools/bmpmaker/bmpsum.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/bmpmaker/bmpsum.cxx b/svtools/bmpmaker/bmpsum.cxx index 215329aa41ff..adc644845bbb 100644 --- a/svtools/bmpmaker/bmpsum.cxx +++ b/svtools/bmpmaker/bmpsum.cxx @@ -36,6 +36,7 @@ #include <map> #include <rtl/crc.h> +#include <rtl/strbuf.hxx> #include <tools/stream.hxx> #include <tools/fsys.hxx> #include <vcl/svapp.hxx> @@ -411,14 +412,13 @@ void BmpSum::ProcessFileList( const String& rInFileList, // write new entries for( sal_uInt32 i = 0; i < aFileNameVector.size(); ++i ) { - ByteString aStr(rtl::OString::valueOf(static_cast<sal_Int64>(aPair.first))); - ByteString aFileName( aFileNameVector[ i ] ); + ByteString aFileName( aFileNameVector[ i ] ); DirEntry aSrcFile( aFileName ); - aStr += '\t'; - aStr += aFileName; - - aOStm.WriteLine( aStr ); + rtl::OStringBuffer aStr; + aStr.append(static_cast<sal_Int64>(aPair.first)) + .append('\t').append(aFileName); + aOStm.WriteLine( aStr.makeStringAndClear() ); // copy bitmap if( rOutPath.Len() ) |