From afd6a9059bcfd6def2b4cb45198b26aa65248f21 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Oct 2011 23:54:39 +0100 Subject: ByteString->rtl::OString --- vcl/source/gdi/jobset.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/source/gdi/jobset.cxx') diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx index 785a4387e99c..0f5c1062275e 100644 --- a/vcl/source/gdi/jobset.cxx +++ b/vcl/source/gdi/jobset.cxx @@ -401,10 +401,10 @@ SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup ) ImplOldJobSetupData aOldData; memset( &aOldData, 0, sizeof( aOldData ) ); - ByteString aPrnByteName( rJobSetup.GetPrinterName(), RTL_TEXTENCODING_UTF8 ); - strncpy( aOldData.cPrinterName, aPrnByteName.GetBuffer(), 63 ); - ByteString aDriverByteName( rJobSetup.GetDriverName(), RTL_TEXTENCODING_UTF8 ); - strncpy( aOldData.cDriverName, aDriverByteName.GetBuffer(), 31 ); + rtl::OString aPrnByteName(rtl::OUStringToOString(rJobSetup.GetPrinterName(), RTL_TEXTENCODING_UTF8)); + strncpy( aOldData.cPrinterName, aPrnByteName.getStr(), 63 ); + rtl::OString aDriverByteName(rtl::OUStringToOString(rJobSetup.GetDriverName(), RTL_TEXTENCODING_UTF8)); + strncpy( aOldData.cDriverName, aDriverByteName.getStr(), 31 ); // nLen = sizeof( aOldData ) + 4 + nOldJobDataSize + pJobData->mnDriverDataLen; int nPos = rOStream.Tell(); rOStream << nLen; -- cgit