>From f85dbd2f41f9bfc4f1530e3dc4af374645171a32 Mon Sep 17 00:00:00 2001 From: Laureano G. Linde <laur...@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
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice