Kaydet (Commit) 9c9276c9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

ucbhelper: Use appropriate OUString functions on string constants

Change-Id: Id5832f8ca20f5ff3179a25bc3c28be7b9fde5bfb
üst dd728444
......@@ -1193,7 +1193,7 @@ void Content_Impl::disposing( const EventObject& Source )
xContent = m_xContent;
m_aURL = "";
m_aURL.clear();
m_xCommandProcessor = 0;
m_xContent = 0;
}
......@@ -1314,7 +1314,7 @@ void Content_Impl::inserted()
{
// URL might have changed during 'insert' => recalculate in next getURL()
osl::MutexGuard aGuard( m_aMutex );
m_aURL = "";
m_aURL.clear();
}
......
......@@ -288,7 +288,7 @@ XTYPEPROVIDER_IMPL_9( ResultSet,
XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet,
OUString("ResultSet"),
OUString(RESULTSET_SERVICE_NAME ) );
RESULTSET_SERVICE_NAME );
......@@ -1334,14 +1334,12 @@ void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
if ( aPropertyName.isEmpty() )
throw beans::UnknownPropertyException();
if ( aPropertyName.equals(
OUString("RowCount") ) )
if ( aPropertyName == "RowCount" )
{
// property is read-only.
throw lang::IllegalArgumentException();
}
else if ( aPropertyName.equals(
OUString("IsRowCountFinal") ) )
else if ( aPropertyName == "IsRowCountFinal" )
{
// property is read-only.
throw lang::IllegalArgumentException();
......@@ -1365,13 +1363,11 @@ uno::Any SAL_CALL ResultSet::getPropertyValue(
uno::Any aValue;
if ( PropertyName.equals(
OUString("RowCount") ) )
if ( PropertyName == "RowCount" )
{
aValue <<= m_pImpl->m_xDataSupplier->currentCount();
}
else if ( PropertyName.equals(
OUString("IsRowCountFinal") ) )
else if ( PropertyName == "IsRowCountFinal" )
{
aValue <<= m_pImpl->m_xDataSupplier->isCountFinal();
}
......@@ -1397,10 +1393,8 @@ void SAL_CALL ResultSet::addPropertyChangeListener(
osl::MutexGuard aGuard( m_pImpl->m_aMutex );
if ( !aPropertyName.isEmpty() &&
!aPropertyName.equals(
OUString("RowCount") ) &&
!aPropertyName.equals(
OUString("IsRowCountFinal") ) )
aPropertyName != "RowCount" &&
aPropertyName != "IsRowCountFinal" )
throw beans::UnknownPropertyException();
if ( !m_pImpl->m_pPropertyChangeListeners )
......@@ -1423,10 +1417,8 @@ void SAL_CALL ResultSet::removePropertyChangeListener(
osl::MutexGuard aGuard( m_pImpl->m_aMutex );
if ( !aPropertyName.isEmpty() &&
!aPropertyName.equals(
OUString("RowCount") ) &&
!aPropertyName.equals(
OUString("IsRowCountFinal") ) )
aPropertyName != "RowCount" &&
aPropertyName != "IsRowCountFinal" )
throw beans::UnknownPropertyException();
if ( m_pImpl->m_pPropertyChangeListeners )
......
......@@ -112,8 +112,7 @@ XTYPEPROVIDER_IMPL_3( ResultSetImplHelper,
XSERVICEINFO_NOFACTORY_IMPL_1( ResultSetImplHelper,
OUString(
"ResultSetImplHelper" ),
OUString(
DYNAMICRESULTSET_SERVICE_NAME ) );
DYNAMICRESULTSET_SERVICE_NAME );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment