diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 11:45:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:07 +0200 |
commit | d894fee80e40519cb579987b95cb3d19345dfa71 (patch) | |
tree | f0b91e37171f4123d3528b681613c99f34509d2e /vcl | |
parent | 5112f6a6c6e4cd76045f31e269a679b50dc83fb2 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructor
Convert code like:
OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX"));
to:
OStringBuffer aKeyName("NDX");
which compiles down to the same code
Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/printer/printerinfomanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx index be3359836b3c..e9f7791c20ec 100644 --- a/vcl/unx/generic/printer/printerinfomanager.cxx +++ b/vcl/unx/generic/printer/printerinfomanager.cxx @@ -793,14 +793,14 @@ bool PrinterInfoManager::writePrinterConfig() for( int i = 0; i < it->second.m_aInfo.m_aContext.countValuesModified(); i++ ) { const PPDKey* pKey = it->second.m_aInfo.m_aContext.getModifiedKey( i ); - OStringBuffer aKey(RTL_CONSTASCII_STRINGPARAM("PPD_")); + OStringBuffer aKey("PPD_"); aKey.append(OUStringToOString(pKey->getKey(), RTL_TEXTENCODING_ISO_8859_1)); const PPDValue* pValue = it->second.m_aInfo.m_aContext.getValue( pKey ); if (pValue) aValue.append(OUStringToOString(pValue->m_aOption, RTL_TEXTENCODING_ISO_8859_1)); else - aValue.append(RTL_CONSTASCII_STRINGPARAM("*nil")); + aValue.append("*nil"); pConfig->WriteKey(aKey.makeStringAndClear(), aValue.makeStringAndClear()); } } @@ -810,7 +810,7 @@ bool PrinterInfoManager::writePrinterConfig() for( ::boost::unordered_map< OUString, OUString, OUStringHash >::const_iterator subst = it->second.m_aInfo.m_aFontSubstitutes.begin(); subst != it->second.m_aInfo.m_aFontSubstitutes.end(); ++subst ) { - OStringBuffer aKey(RTL_CONSTASCII_STRINGPARAM("SubstFont_")); + OStringBuffer aKey("SubstFont_"); aKey.append(OUStringToOString(subst->first, RTL_TEXTENCODING_ISO_8859_1)); pConfig->WriteKey( aKey.makeStringAndClear(), OUStringToOString( subst->second, RTL_TEXTENCODING_ISO_8859_1 ) ); } |