summaryrefslogtreecommitdiff
path: root/svl/source/fsstor
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-17 11:11:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-17 11:11:19 +0000
commit4a45c1b515859e997df02da0ff3d6d957c9048e5 (patch)
treea3a8c207fdfd64c3faa5db0717dcb6c55def1e1c /svl/source/fsstor
parent255c380ead386f0eef6454021b2fa203cb182e89 (diff)
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'svl/source/fsstor')
-rw-r--r--svl/source/fsstor/fsstorage.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index e3fa778fe94d..29ca7d9da631 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -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