Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index



From f85dbd2f41f9bfc4f1530e3dc4af374645171a32 Mon Sep 17 00:00:00 2001
From: Laureano G. Linde <lauregl@gmail.com>
Date: Wed, 18 Apr 2012 11:49:27 +0200
Subject: [PATCH] Avoid temporaty rtl::OUString in dtrans/source/cnttype/mcnttype.cxx

---
 dtrans/source/cnttype/mcnttype.cxx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx
index 14b2010..865e42f 100644
--- a/dtrans/source/cnttype/mcnttype.cxx
+++ b/dtrans/source/cnttype/mcnttype.cxx
@@ -259,13 +259,13 @@ void SAL_CALL CMimeContentType::trailer( void )
     rtl::OUString sToken(TOKEN);
     while( !m_nxtSym.isEmpty( ) )
     {
-        if ( m_nxtSym == OUString(RTL_CONSTASCII_USTRINGPARAM("(")) )
+        if ( m_nxtSym.equalsAsciiL(RTL_CONSTASCII_USTRINGPARAM("(")) )
         {
             getSym( );
             comment( );
             acceptSym( OUString(RTL_CONSTASCII_USTRINGPARAM(")")) );
         }
-        else if ( m_nxtSym == OUString(RTL_CONSTASCII_USTRINGPARAM(";")) )
+        else if ( m_nxtSym.equalsAsciiL(RTL_CONSTASCII_USTRINGPARAM(";")) )
         {
             // get the parameter name
             getSym( );
@@ -328,7 +328,7 @@ OUString SAL_CALL CMimeContentType::pValue( )
 
     rtl::OUString sToken(TOKEN);
     // quoted pvalue
-    if ( m_nxtSym == OUString(RTL_CONSTASCII_USTRINGPARAM( "\"" )) )
+    if ( m_nxtSym.equalsAsciiL(RTL_CONSTASCII_USTRINGPARAM( "\"" )) )
     {
         getSym( );
         pvalue = quotedPValue( );
@@ -375,7 +375,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
         else if ( isInRange( m_nxtSym, rtl::OUString(TOKEN) + rtl::OUString(TSPECIALS) + 
rtl::OUString(SPACE) ) )
         {
             pvalue += m_nxtSym;
-            if ( m_nxtSym == OUString(RTL_CONSTASCII_USTRINGPARAM( "\"" )) )
+            if ( m_nxtSym.equalsAsciiL(RTL_CONSTASCII_USTRINGPARAM( "\"" )) )
                 bAfterQuoteSign = sal_True;
             else
                 bAfterQuoteSign = sal_False;
@@ -421,7 +421,7 @@ void SAL_CALL CMimeContentType::comment( void )
     {
         if ( isInRange( m_nxtSym, rtl::OUString(TOKEN) + rtl::OUString(SPACE) ) )
             getSym( );
-        else if ( m_nxtSym == OUString(RTL_CONSTASCII_USTRINGPARAM(")")) )
+        else if ( m_nxtSym.equalsAsciiL(RTL_CONSTASCII_USTRINGPARAM(")")) )
             break;
         else
             throw IllegalArgumentException( );
-- 
1.7.0.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.