summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 11:06:18 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:12 +0200
commit0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch)
tree3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /dbaccess/source/ui/uno
parent7944301424aac0943e4ecc0410f495b210ad3b79 (diff)
convert OUString 0==compareToAscii to equalsAscii
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
Diffstat (limited to 'dbaccess/source/ui/uno')
-rw-r--r--dbaccess/source/ui/uno/unoDirectSql.cxx4
-rw-r--r--dbaccess/source/ui/uno/unoadmin.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/uno/unoDirectSql.cxx b/dbaccess/source/ui/uno/unoDirectSql.cxx
index 47c92fd2ee49..ac3ead395dfd 100644
--- a/dbaccess/source/ui/uno/unoDirectSql.cxx
+++ b/dbaccess/source/ui/uno/unoDirectSql.cxx
@@ -102,12 +102,12 @@ DBG_NAME(ODirectSQLDialog)
PropertyValue aProperty;
if (_rValue >>= aProperty)
{
- if (0 == aProperty.Name.compareToAscii("InitialSelection"))
+ if (aProperty.Name.equalsAscii("InitialSelection"))
{
OSL_VERIFY( aProperty.Value >>= m_sInitialSelection );
return;
}
- else if (0 == aProperty.Name.compareToAscii("ActiveConnection"))
+ else if (aProperty.Name.equalsAscii("ActiveConnection"))
{
m_xActiveConnection.set( aProperty.Value, UNO_QUERY );
OSL_ENSURE( m_xActiveConnection.is(), "ODirectSQLDialog::implInitialize: invalid connection!" );
diff --git a/dbaccess/source/ui/uno/unoadmin.cxx b/dbaccess/source/ui/uno/unoadmin.cxx
index b4ae0a336f44..e88e253aead7 100644
--- a/dbaccess/source/ui/uno/unoadmin.cxx
+++ b/dbaccess/source/ui/uno/unoadmin.cxx
@@ -83,11 +83,11 @@ void ODatabaseAdministrationDialog::implInitialize(const Any& _rValue)
PropertyValue aProperty;
if (_rValue >>= aProperty)
{
- if (0 == aProperty.Name.compareToAscii("InitialSelection"))
+ if (aProperty.Name.equalsAscii("InitialSelection"))
{
m_aInitialSelection = aProperty.Value;
}
- else if (0 == aProperty.Name.compareToAscii("ActiveConnection"))
+ else if (aProperty.Name.equalsAscii("ActiveConnection"))
{
m_xActiveConnection.set(aProperty.Value,UNO_QUERY);
}