diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 10:05:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 1730df0127ff230cf6c89f4815f5b59c8603fa2b (patch) | |
tree | 4d5b32ea155c173fe3cfd905bb148e0998286d9a /vcl/unx | |
parent | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like:
aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") );
to:
aOStringBuf.append( " is missing )" );
which compiles down to the same code.
Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/printer/jobdata.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/generic/printer/jobdata.cxx b/vcl/unx/generic/printer/jobdata.cxx index 47bb0f4d4b57..3526138002db 100644 --- a/vcl/unx/generic/printer/jobdata.cxx +++ b/vcl/unx/generic/printer/jobdata.cxx @@ -114,26 +114,26 @@ bool JobData::getStreamBuffer( void*& pData, int& bytes ) SvMemoryStream aStream; // write header job data - aStream.WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("JobData 1"))); + aStream.WriteLine(OString("JobData 1")); OStringBuffer aLine; - aLine.append(RTL_CONSTASCII_STRINGPARAM("printer=")); + aLine.append("printer="); aLine.append(OUStringToOString(m_aPrinterName, RTL_TEXTENCODING_UTF8)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("orientation=")); + aLine.append("orientation="); if (m_eOrientation == orientation::Landscape) - aLine.append(RTL_CONSTASCII_STRINGPARAM("Landscape")); + aLine.append("Landscape"); else - aLine.append(RTL_CONSTASCII_STRINGPARAM("Portrait")); + aLine.append("Portrait"); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("copies=")); + aLine.append("copies="); aLine.append(static_cast<sal_Int32>(m_nCopies)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("margindajustment=")); + aLine.append("margindajustment="); aLine.append(static_cast<sal_Int32>(m_nLeftMarginAdjust)); aLine.append(','); aLine.append(static_cast<sal_Int32>(m_nRightMarginAdjust)); @@ -143,19 +143,19 @@ bool JobData::getStreamBuffer( void*& pData, int& bytes ) aLine.append(static_cast<sal_Int32>(m_nBottomMarginAdjust)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("colordepth=")); + aLine.append("colordepth="); aLine.append(static_cast<sal_Int32>(m_nColorDepth)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("pslevel=")); + aLine.append("pslevel="); aLine.append(static_cast<sal_Int32>(m_nPSLevel)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("pdfdevice=")); + aLine.append("pdfdevice="); aLine.append(static_cast<sal_Int32>(m_nPDFDevice)); aStream.WriteLine(aLine.makeStringAndClear()); - aLine.append(RTL_CONSTASCII_STRINGPARAM("colordevice=")); + aLine.append("colordevice="); aLine.append(static_cast<sal_Int32>(m_nColorDevice)); aStream.WriteLine(aLine.makeStringAndClear()); |