Reduce scope + use SAL_N_ELEMENTS
Change-Id: I33fd212f6ab82f802fa85af804980c2e8c4c9ec7
This commit is contained in:
@@ -171,8 +171,6 @@ void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _
|
|||||||
,::std::pair< OUString, OUString >(PROPERTY_ORDER,OUString(" ORDER BY "))
|
,::std::pair< OUString, OUString >(PROPERTY_ORDER,OUString(" ORDER BY "))
|
||||||
};
|
};
|
||||||
|
|
||||||
size_t i = 0;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const String sSourceName = (::dbtools::composeTableNameForSelect(m_xConnection,m_xObject) + OUString("."));
|
const String sSourceName = (::dbtools::composeTableNameForSelect(m_xConnection,m_xObject) + OUString("."));
|
||||||
@@ -184,7 +182,7 @@ void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _
|
|||||||
sStatement += OUString(" WHERE 0=1");
|
sStatement += OUString(" WHERE 0=1");
|
||||||
|
|
||||||
|
|
||||||
for ( i=0; i < sizeof( aProperties ) / sizeof( aProperties[0] ); ++i )
|
for ( size_t i=0; i < SAL_N_ELEMENTS(aProperties); ++i )
|
||||||
{
|
{
|
||||||
if ( m_xObjectPSI->hasPropertyByName( aProperties[i].first ) )
|
if ( m_xObjectPSI->hasPropertyByName( aProperties[i].first ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user