Kaydet (Commit) 45701913 authored tarafından Jaskaran's avatar Jaskaran Kaydeden (comit) Michael Stahl

tdf#75280 Replace sal_uIntPtr to better types in /connectivity

Many other occurences of outdated sal_uIntPtr still remain.This
commit does not fully fix the issue.

Change-Id: I744a4399a12cefb48e948c20c2d0dec833116b81
Reviewed-on: https://gerrit.libreoffice.org/23034Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 7faecc70
......@@ -34,20 +34,20 @@ OIndexIterator::~OIndexIterator()
}
sal_uIntPtr OIndexIterator::First()
sal_uInt32 OIndexIterator::First()
{
return Find(true);
}
sal_uIntPtr OIndexIterator::Next()
sal_uInt32 OIndexIterator::Next()
{
return Find(false);
}
sal_uIntPtr OIndexIterator::Find(bool bFirst)
sal_uInt32 OIndexIterator::Find(bool bFirst)
{
sal_uIntPtr nRes = NODE_NOTFOUND;
sal_uInt32 nRes = NODE_NOTFOUND;
if (bFirst)
{
......@@ -129,7 +129,7 @@ ONDXKey* OIndexIterator::GetFirstKey(ONDXPage* pPage, const OOperand& rKey)
}
sal_uIntPtr OIndexIterator::GetCompare(bool bFirst)
sal_uInt32 OIndexIterator::GetCompare(bool bFirst)
{
ONDXKey* pKey = nullptr;
sal_Int32 ePredicateType = dynamic_cast<file::OOp_COMPARE&>(*m_pOperator).getPredicateType();
......@@ -199,7 +199,7 @@ sal_uIntPtr OIndexIterator::GetCompare(bool bFirst)
}
sal_uIntPtr OIndexIterator::GetLike(bool bFirst)
sal_uInt32 OIndexIterator::GetLike(bool bFirst)
{
if (bFirst)
{
......@@ -219,7 +219,7 @@ sal_uIntPtr OIndexIterator::GetLike(bool bFirst)
}
sal_uIntPtr OIndexIterator::GetNull(bool bFirst)
sal_uInt32 OIndexIterator::GetNull(bool bFirst)
{
if (bFirst)
{
......@@ -241,13 +241,13 @@ sal_uIntPtr OIndexIterator::GetNull(bool bFirst)
}
sal_uIntPtr OIndexIterator::GetNotNull(bool bFirst)
sal_uInt32 OIndexIterator::GetNotNull(bool bFirst)
{
ONDXKey* pKey;
if (bFirst)
{
// go through all NULL values first
for (sal_uIntPtr nRec = GetNull(bFirst);
for (sal_uInt32 nRec = GetNull(bFirst);
nRec != NODE_NOTFOUND;
nRec = GetNull(false))
;
......
......@@ -167,7 +167,7 @@ bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xInde
if (pIter)
{
sal_uIntPtr nRec = pIter->First();
sal_uInt32 nRec = pIter->First();
while (nRec != NODE_NOTFOUND)
{
if (m_aOrderbyAscending[0])
......
......@@ -41,11 +41,11 @@ namespace connectivity
m_aCurLeaf;
sal_uInt16 m_nCurNode;
sal_uIntPtr Find(bool bFirst);
sal_uIntPtr GetCompare(bool bFirst);
sal_uIntPtr GetLike(bool bFirst);
sal_uIntPtr GetNull(bool bFirst);
sal_uIntPtr GetNotNull(bool bFirst);
sal_uInt32 Find(bool bFirst);
sal_uInt32 GetCompare(bool bFirst);
sal_uInt32 GetLike(bool bFirst);
sal_uInt32 GetNull(bool bFirst);
sal_uInt32 GetNotNull(bool bFirst);
ONDXKey* GetFirstKey(ONDXPage* pPage,
const file::OOperand& rKey);
......@@ -64,8 +64,8 @@ namespace connectivity
}
virtual ~OIndexIterator();
sal_uIntPtr First();
sal_uIntPtr Next();
sal_uInt32 First();
sal_uInt32 Next();
};
}
......
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