equalsAsciiL faster than equalsAscii
This commit is contained in:
parent
255c380ead
commit
4a45c1b515
2 changed files with 7 additions and 7 deletions
|
@ -1335,7 +1335,7 @@ void SAL_CALL FSStorage::setPropertyValue( const ::rtl::OUString& aPropertyName,
|
|||
if ( !m_pImpl )
|
||||
throw lang::DisposedException();
|
||||
|
||||
if ( aPropertyName.equalsAscii( "URL" ) || aPropertyName.equalsAscii( "OpenMode" ) )
|
||||
if ( aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL")) || aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("OpenMode")) )
|
||||
throw beans::PropertyVetoException(); // TODO
|
||||
else
|
||||
throw beans::UnknownPropertyException(); // TODO
|
||||
|
@ -1353,9 +1353,9 @@ uno::Any SAL_CALL FSStorage::getPropertyValue( const ::rtl::OUString& aPropertyN
|
|||
if ( !m_pImpl )
|
||||
throw lang::DisposedException();
|
||||
|
||||
if ( aPropertyName.equalsAscii( "URL" ) )
|
||||
if ( aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL")) )
|
||||
return uno::makeAny( m_pImpl->m_aURL );
|
||||
else if ( aPropertyName.equalsAscii( "OpenMode" ) )
|
||||
else if ( aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("OpenMode")) )
|
||||
return uno::makeAny( m_pImpl->m_nMode );
|
||||
|
||||
throw beans::UnknownPropertyException(); // TODO
|
||||
|
|
|
@ -956,10 +956,10 @@ static sal_Bool UCBOpenContentSync(
|
|||
aScheme = xContId->getContentProviderScheme();
|
||||
|
||||
// now determine wether we use a timeout or not;
|
||||
if( ! aScheme.equalsIgnoreAsciiCaseAscii("http") &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAscii("https") &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAscii("vnd.sun.star.webdav") &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAscii("ftp"))
|
||||
if( ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("http")) &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("https")) &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.webdav")) &&
|
||||
! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("ftp")))
|
||||
return _UCBOpenContentSync(
|
||||
xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler);
|
||||
|
||||
|
|
Loading…
Reference in a new issue