diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-14 23:54:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-15 12:18:47 +0100 |
commit | afd6a9059bcfd6def2b4cb45198b26aa65248f21 (patch) | |
tree | aa04a8a1a928f4e5f2578f16e328fcf95774be12 /vcl/source/gdi/jobset.cxx | |
parent | 7a8c46ae1ffe72c3c77274bf4e7828e1363b34e6 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'vcl/source/gdi/jobset.cxx')
-rw-r--r-- | vcl/source/gdi/jobset.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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; |