summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx14
-rw-r--r--ucb/source/sorter/sortdynres.cxx4
-rw-r--r--ucb/source/sorter/sortresult.cxx4
3 files changed, 11 insertions, 11 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 54c1d112ea2e..c7444b5d8f45 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -151,8 +151,8 @@ bool CachedContentResultSet::CCRS_Cache
{
if( !m_pResult )
return false;
- long nStart = m_pResult->StartIndex;
- long nEnd = nStart;
+ sal_Int32 nStart = m_pResult->StartIndex;
+ sal_Int32 nEnd = nStart;
if( m_pResult->Orientation )
nEnd += m_pResult->Rows.getLength() - 1;
else
@@ -166,7 +166,7 @@ sal_Int32 CachedContentResultSet::CCRS_Cache
{
if( !m_pResult )
return 0;
- long nEnd = m_pResult->StartIndex;
+ sal_Int32 nEnd = m_pResult->StartIndex;
if( m_pResult->Orientation )
return nEnd += m_pResult->Rows.getLength() - 1;
else
@@ -192,7 +192,7 @@ bool CachedContentResultSet::CCRS_Cache
if( !( m_pResult->FetchError & FetchError::EXCEPTION ) )
return false;
- long nEnd = m_pResult->StartIndex;
+ sal_Int32 nEnd = m_pResult->StartIndex;
if( m_pResult->Orientation )
nEnd += m_pResult->Rows.getLength();
@@ -209,7 +209,7 @@ Any& CachedContentResultSet::CCRS_Cache
if( !hasRow( nRow ) )
throw SQLException();
- long nDiff = nRow - m_pResult->StartIndex;
+ sal_Int32 nDiff = nRow - m_pResult->StartIndex;
if( nDiff < 0 )
nDiff *= -1;
@@ -222,7 +222,7 @@ void CachedContentResultSet::CCRS_Cache
//remind that this row was mapped
if( !m_pResult )
return;
- long nDiff = nRow - m_pResult->StartIndex;
+ sal_Int32 nDiff = nRow - m_pResult->StartIndex;
if( nDiff < 0 )
nDiff *= -1;
Sequence< sal_Bool >* pMappedReminder = getMappedReminder();
@@ -235,7 +235,7 @@ bool CachedContentResultSet::CCRS_Cache
{
if( !m_pMappedReminder || !m_pResult )
return false;
- long nDiff = nRow - m_pResult->StartIndex;
+ sal_Int32 nDiff = nRow - m_pResult->StartIndex;
if( nDiff < 0 )
nDiff *= -1;
if( nDiff < m_pMappedReminder->getLength() )
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index dfd99daa0f15..7d8fef03c82c 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -380,14 +380,14 @@ void SortedDynamicResultSet::impl_disposing()
void SortedDynamicResultSet::SendNotify()
{
- long nCount = maActions.Count();
+ sal_Int32 nCount = maActions.Count();
if ( nCount && mxListener.is() )
{
Sequence< ListAction > aActionList( maActions.Count() );
ListAction *pActionList = aActionList.getArray();
- for ( long i=0; i<nCount; i++ )
+ for ( sal_Int32 i=0; i<nCount; i++ )
{
pActionList[ i ] = *(maActions.GetAction( i ));
}
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index 6c5e99226e40..4998409330e2 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -877,7 +877,7 @@ sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResult
Reference < XRow > xRowTwo( xResultTwo, UNO_QUERY );
sal_IntPtr nCompare = 0;
- sal_IntPtr nColumn = pSortInfo->mnColumn;
+ sal_Int32 nColumn = pSortInfo->mnColumn;
switch ( pSortInfo->mnType )
{
@@ -1535,7 +1535,7 @@ void SortedResultSet::BuildSortInfo(
OUString aPropName;
SortInfo *pInfo;
- for ( sal_IntPtr i=xSortInfo.getLength(); i > 0; )
+ for ( sal_Int32 i=xSortInfo.getLength(); i > 0; )
{
--i;
nColumn = pSortInfo[ i ].ColumnIndex;