summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accdoc.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 15:10:41 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 21:04:34 +0100
commitf1d80220226919b55e4378fdb1dee3d511c094df (patch)
tree3f3e98ef2d82af3cd425d6d0837361628b0d02d3 /sw/source/core/access/accdoc.cxx
parentc6182e08dbe7f8e10a2d00482f7f0f348a8f7c9e (diff)
sal_uInt16 to sal_Int32 / int
Change-Id: I9cf47330a6463c90888b0caf822c3b70ae26371a
Diffstat (limited to 'sw/source/core/access/accdoc.cxx')
-rw-r--r--sw/source/core/access/accdoc.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
index a54ed2d423ff..ad91f4a566cc 100644
--- a/sw/source/core/access/accdoc.cxx
+++ b/sw/source/core/access/accdoc.cxx
@@ -699,7 +699,6 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwPaM* pCaret = pCrsrShell->GetCrsr();
if (!pCurrTxtFrm->IsEmpty() && pCaret)
{
- sal_uInt16 nActPos = 0;
if (pCurrTxtFrm->IsTxtFrm())
{
const SwPosition* pPoint = NULL;
@@ -711,7 +710,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
}
else
pPoint = pCaret->GetPoint();
- nActPos = pPoint->nContent.GetIndex();
+ const sal_Int32 nActPos = pPoint->nContent.GetIndex();
nLineNum += pCurrTxtFrm->GetLineCount( nActPos );
}
else//graphic, form, shape, etc.
@@ -720,7 +719,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
Point aPt = pCrsrShell->_GetCrsr()->GetPtPos();
if( pCrsrShell->GetLayout()->GetCrsrOfst( pPoint, aPt/*,* &eTmpState*/ ) )
{
- nActPos = pPoint->nContent.GetIndex();
+ const sal_Int32 nActPos = pPoint->nContent.GetIndex();
nLineNum += pCurrTxtFrm->GetLineCount( nActPos );
}
}
@@ -740,7 +739,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
sAttrName = "column-number:";
sValue += sAttrName;
- sal_uInt16 nCurrCol = 1;
+ int nCurrCol = 1;
if(pCurrCol!=NULL)
{
//SwLayoutFrm* pParent = pCurrCol->GetUpper();
@@ -758,7 +757,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
while(pCol&&(pCol!=pCurrPageCol))
{
pCol = pCol->GetNext();
- nCurrCol +=1;
+ ++nCurrCol;
}
}
}