diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:11:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:11:27 +0100 |
commit | 2b86f17f0538519d468aaa9811f2f1cdfb270134 (patch) | |
tree | e51be191978c32fec72efe2f283a4697e47fca25 /dbaccess/source/ui/uno | |
parent | a5179f0cf8ee8c244d5cef2781c78755804a23ba (diff) |
dbaccess: Use appropriate OUString functions on string constants
Change-Id: Iea28ad5e1a469830e002471517197365fd6de3ee
Diffstat (limited to 'dbaccess/source/ui/uno')
-rw-r--r-- | dbaccess/source/ui/uno/unoDirectSql.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/uno/unoadmin.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/uno/unoDirectSql.cxx b/dbaccess/source/ui/uno/unoDirectSql.cxx index 9c214d5a4dce..9f752dac81d0 100644 --- a/dbaccess/source/ui/uno/unoDirectSql.cxx +++ b/dbaccess/source/ui/uno/unoDirectSql.cxx @@ -106,12 +106,12 @@ namespace dbaui PropertyValue aProperty; if (_rValue >>= aProperty) { - if (aProperty.Name.equalsAscii("InitialSelection")) + if (aProperty.Name == "InitialSelection") { OSL_VERIFY( aProperty.Value >>= m_sInitialSelection ); return; } - else if (aProperty.Name.equalsAscii("ActiveConnection")) + else if (aProperty.Name == "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 702138310548..7653ec7d03d0 100644 --- a/dbaccess/source/ui/uno/unoadmin.cxx +++ b/dbaccess/source/ui/uno/unoadmin.cxx @@ -80,11 +80,11 @@ void ODatabaseAdministrationDialog::implInitialize(const Any& _rValue) PropertyValue aProperty; if (_rValue >>= aProperty) { - if (aProperty.Name.equalsAscii("InitialSelection")) + if (aProperty.Name == "InitialSelection") { m_aInitialSelection = aProperty.Value; } - else if (aProperty.Name.equalsAscii("ActiveConnection")) + else if (aProperty.Name == "ActiveConnection") { m_xActiveConnection.set(aProperty.Value,UNO_QUERY); } |