diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-12 23:24:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-13 10:11:43 +0000 |
commit | 34cbfad1b27cf28c10974f8170abe00e824f4a9d (patch) | |
tree | 0f8d5356a28edb951e6acb58281c64aca402d27b /vcl/unx/generic/printer/ppdparser.cxx | |
parent | 41f59c6cf2e27a38e3cc4465582ba154be65086d (diff) |
replace ByteString(String ctor
Diffstat (limited to 'vcl/unx/generic/printer/ppdparser.cxx')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 1fde94972895..3aec40640d2b 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -1871,12 +1871,12 @@ char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const hash_type::const_iterator it; for( it = m_aCurrentValues.begin(); it != m_aCurrentValues.end(); ++it ) { - ByteString aCopy( it->first->getKey(), RTL_TEXTENCODING_MS_1252 ); + ByteString aCopy(rtl::OUStringToOString(it->first->getKey(), RTL_TEXTENCODING_MS_1252)); rBytes += aCopy.Len(); rBytes += 1; // for ':' if( it->second ) { - aCopy = ByteString( it->second->m_aOption, RTL_TEXTENCODING_MS_1252 ); + aCopy = rtl::OUStringToOString(it->second->m_aOption, RTL_TEXTENCODING_MS_1252); rBytes += aCopy.Len(); } else @@ -1889,13 +1889,13 @@ char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const char* pRun = pBuffer; for( it = m_aCurrentValues.begin(); it != m_aCurrentValues.end(); ++it ) { - ByteString aCopy( it->first->getKey(), RTL_TEXTENCODING_MS_1252 ); + ByteString aCopy(rtl::OUStringToOString(it->first->getKey(), RTL_TEXTENCODING_MS_1252)); int nBytes = aCopy.Len(); memcpy( pRun, aCopy.GetBuffer(), nBytes ); pRun += nBytes; *pRun++ = ':'; if( it->second ) - aCopy = ByteString( it->second->m_aOption, RTL_TEXTENCODING_MS_1252 ); + aCopy = rtl::OUStringToOString(it->second->m_aOption, RTL_TEXTENCODING_MS_1252); else aCopy = "*nil"; nBytes = aCopy.Len(); |