diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-15 21:59:24 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-16 17:12:27 +0000 |
commit | 37d2588844889da97dcbd5b1a5141797f5c33d4f (patch) | |
tree | e50ee27df2ed9786f4f41a19116d8c0416492216 /tools/source/inet/inetmsg.cxx | |
parent | fdb41140bf30bf18c05bbd0fd2c35594a9e6b338 (diff) |
Remove RTL_CONSTASCII_(U)STRINGPARAM in tools
Change-Id: Id97070321ad6b20f349896d3b4e1ae51cc82ece7
Reviewed-on: https://gerrit.libreoffice.org/2769
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'tools/source/inet/inetmsg.cxx')
-rw-r--r-- | tools/source/inet/inetmsg.cxx | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index 35bd176cd13e..914d59caca82 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -47,8 +47,6 @@ inline sal_Unicode ascii_toLowerCase( sal_Unicode ch ) return ch; } -#define CONSTASCII_STRINGPARAM(a) (a), RTL_TEXTENCODING_ASCII_US - INetMessage::~INetMessage() { ListCleanup_Impl(); @@ -152,22 +150,22 @@ namespace { static const OString _ImplINetRFC822MessageHeaderData[] = { - OString(RTL_CONSTASCII_STRINGPARAM("BCC")), - OString(RTL_CONSTASCII_STRINGPARAM("CC")), - OString(RTL_CONSTASCII_STRINGPARAM("Comments")), - OString(RTL_CONSTASCII_STRINGPARAM("Date")), - OString(RTL_CONSTASCII_STRINGPARAM("From")), - OString(RTL_CONSTASCII_STRINGPARAM("In-Reply-To")), - OString(RTL_CONSTASCII_STRINGPARAM("Keywords")), - OString(RTL_CONSTASCII_STRINGPARAM("Message-ID")), - OString(RTL_CONSTASCII_STRINGPARAM("References")), - OString(RTL_CONSTASCII_STRINGPARAM("Reply-To")), - OString(RTL_CONSTASCII_STRINGPARAM("Return-Path")), - OString(RTL_CONSTASCII_STRINGPARAM("Subject")), - OString(RTL_CONSTASCII_STRINGPARAM("Sender")), - OString(RTL_CONSTASCII_STRINGPARAM("To")), - OString(RTL_CONSTASCII_STRINGPARAM("X-Mailer")), - OString(RTL_CONSTASCII_STRINGPARAM("Return-Receipt-To")) + OString("BCC"), + OString("CC"), + OString("Comments"), + OString("Date"), + OString("From"), + OString("In-Reply-To"), + OString("Keywords"), + OString("Message-ID"), + OString("References"), + OString("Reply-To"), + OString("Return-Path"), + OString("Subject"), + OString("Sender"), + OString("To"), + OString("X-Mailer"), + OString("Return-Receipt-To") }; return &_ImplINetRFC822MessageHeaderData[0]; } @@ -639,12 +637,12 @@ namespace { static const OString _ImplINetMIMEMessageHeaderData[] = { - OString(RTL_CONSTASCII_STRINGPARAM("MIME-Version")), - OString(RTL_CONSTASCII_STRINGPARAM("Content-Description")), - OString(RTL_CONSTASCII_STRINGPARAM("Content-Disposition")), - OString(RTL_CONSTASCII_STRINGPARAM("Content-ID")), - OString(RTL_CONSTASCII_STRINGPARAM("Content-Type")), - OString(RTL_CONSTASCII_STRINGPARAM("Content-Transfer-Encoding")) + OString("MIME-Version"), + OString("Content-Description"), + OString("Content-Disposition"), + OString("Content-ID"), + OString("Content-Type"), + OString("Content-Transfer-Encoding") }; return &_ImplINetMIMEMessageHeaderData[0]; } @@ -944,36 +942,36 @@ bool INetMIMEMessage::EnableAttachChild (INetMessageContainerType eType) switch (eType) { case INETMSG_MESSAGE_RFC822: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("message/rfc822")); + aContentType.append("message/rfc822"); break; case INETMSG_MULTIPART_ALTERNATIVE: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/alternative")); + aContentType.append("multipart/alternative"); break; case INETMSG_MULTIPART_DIGEST: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/digest")); + aContentType.append("multipart/digest"); break; case INETMSG_MULTIPART_PARALLEL: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/parallel")); + aContentType.append("multipart/parallel"); break; case INETMSG_MULTIPART_RELATED: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/related")); + aContentType.append("multipart/related"); break; case INETMSG_MULTIPART_FORM_DATA: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/form-data")); + aContentType.append("multipart/form-data"); break; default: - aContentType.append(RTL_CONSTASCII_STRINGPARAM("multipart/mixed")); + aContentType.append("multipart/mixed"); break; } // Setup boundary for multipart types. - if (aContentType.toString().equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("multipart/"))) + if (aContentType.toString().equalsIgnoreAsciiCase("multipart/")) { // Generate a unique boundary from current time. sal_Char sTail[16 + 1]; @@ -987,7 +985,7 @@ bool INetMIMEMessage::EnableAttachChild (INetMessageContainerType eType) m_aBoundary += sTail; // Append boundary as ContentType parameter. - aContentType.append(RTL_CONSTASCII_STRINGPARAM("; boundary=")); + aContentType.append("; boundary="); aContentType.append(m_aBoundary); } |