summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 14:05:24 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 08:07:18 +0200
commit2241fd5302c1ec83c8cbaa2422a477628a569aab (patch)
treea1e29ab709aaa0cfda59382db1ef84d25a238908 /svtools
parent6266efb0fe8cd52ee908d5d36f1de322735fe8bc (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiL
Convert code like: aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN")) to: aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN") which compiles down to the same code. Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/transfer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 32430046f26e..6a8df65566c9 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -2028,7 +2028,7 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
OString aDesc( pFDesc->fgd[ 0 ].cFileName );
rtl_TextEncoding eTextEncoding = osl_getThreadTextEncoding();
- if( ( aDesc.getLength() > 4 ) && aDesc.copy(aDesc.getLength() - 4).equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM(".URL")) )
+ if( ( aDesc.getLength() > 4 ) && aDesc.copy(aDesc.getLength() - 4).equalsIgnoreAsciiCase(".URL") )
{
SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( INetURLObject( OStringToOUString(aDesc, eTextEncoding) ).GetMainURL( INetURLObject::NO_DECODE ),
STREAM_STD_READ );
@@ -2056,9 +2056,9 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
while( pStream->ReadLine( aLine ) )
{
- if (aLine.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("[InternetShortcut]")))
+ if (aLine.equalsIgnoreAsciiCase("[InternetShortcut]"))
bSttFnd = sal_True;
- else if (bSttFnd && aLine.copy(0, 4).equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("URL=")))
+ else if (bSttFnd && aLine.copy(0, 4).equalsIgnoreAsciiCase("URL="))
{
rBmk = INetBookmark( OStringToOUString(aLine.copy(4), eTextEncoding),
OStringToOUString(aDesc.copy(0, aDesc.getLength() - 4), eTextEncoding) );