summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider/resultset.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/provider/resultset.cxx')
-rw-r--r--ucbhelper/source/provider/resultset.cxx27
1 files changed, 15 insertions, 12 deletions
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 47825f15c6b1..b39d6aa886a6 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -308,8 +309,8 @@ XTYPEPROVIDER_IMPL_9( ResultSet,
//=========================================================================
XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet,
- rtl::OUString::createFromAscii( "ResultSet" ),
- rtl::OUString::createFromAscii( RESULTSET_SERVICE_NAME ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResultSet")),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( RESULTSET_SERVICE_NAME )) );
//=========================================================================
//
@@ -1357,13 +1358,13 @@ void SAL_CALL ResultSet::setPropertyValue( const rtl::OUString& aPropertyName,
throw beans::UnknownPropertyException();
if ( aPropertyName.equals(
- rtl::OUString::createFromAscii( "RowCount" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) )
{
// property is read-only.
throw lang::IllegalArgumentException();
}
else if ( aPropertyName.equals(
- rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) )
{
// property is read-only.
throw lang::IllegalArgumentException();
@@ -1388,12 +1389,12 @@ uno::Any SAL_CALL ResultSet::getPropertyValue(
uno::Any aValue;
if ( PropertyName.equals(
- rtl::OUString::createFromAscii( "RowCount" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) )
{
aValue <<= m_pImpl->m_xDataSupplier->currentCount();
}
else if ( PropertyName.equals(
- rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) )
{
aValue <<= m_pImpl->m_xDataSupplier->isCountFinal();
}
@@ -1420,9 +1421,9 @@ void SAL_CALL ResultSet::addPropertyChangeListener(
if ( aPropertyName.getLength() &&
!aPropertyName.equals(
- rtl::OUString::createFromAscii( "RowCount" ) ) &&
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) &&
!aPropertyName.equals(
- rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) )
throw beans::UnknownPropertyException();
if ( !m_pImpl->m_pPropertyChangeListeners )
@@ -1446,9 +1447,9 @@ void SAL_CALL ResultSet::removePropertyChangeListener(
if ( aPropertyName.getLength() &&
!aPropertyName.equals(
- rtl::OUString::createFromAscii( "RowCount" ) ) &&
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) &&
!aPropertyName.equals(
- rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) )
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) )
throw beans::UnknownPropertyException();
if ( m_pImpl->m_pPropertyChangeListeners )
@@ -1535,7 +1536,7 @@ void ResultSet::rowCountChanged( sal_uInt32 nOld, sal_uInt32 nNew )
propertyChanged(
beans::PropertyChangeEvent(
static_cast< cppu::OWeakObject * >( this ),
- rtl::OUString::createFromAscii( "RowCount" ),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")),
sal_False,
1001,
uno::makeAny( nOld ), // old value
@@ -1551,7 +1552,7 @@ void ResultSet::rowCountFinal()
propertyChanged(
beans::PropertyChangeEvent(
static_cast< cppu::OWeakObject * >( this ),
- rtl::OUString::createFromAscii( "IsRowCountFinal" ),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")),
sal_False,
1000,
uno:: makeAny( sal_False ), // old value
@@ -1693,3 +1694,5 @@ sal_Bool PropertySetInfo::queryProperty(
}
} // namespace ucbhelper_impl
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */