summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docsort.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-04-25 11:29:29 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-25 12:35:31 +0200
commit1df74354d65f9ff5236a80fefebebcec64e7980f (patch)
tree03a1de99323b93697ae09201ad82304ed4ac92ba /sw/source/core/doc/docsort.cxx
parent0c48023feadf8cbfd110e5959a8aca23cf0fd501 (diff)
_FndBoxes was a PTRARR_DEL so use ptr_vector
Diffstat (limited to 'sw/source/core/doc/docsort.cxx')
-rw-r--r--sw/source/core/doc/docsort.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index 1f0766756641..dd3f81011cf9 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.cxx
@@ -832,7 +832,7 @@ sal_Bool FlatFndBox::CheckBoxSymmetry(const _FndLine& rLn)
// Iterate over Boxes
for(sal_uInt16 i=0; i < rBoxes.size(); ++i)
{ // The Boxes of a Line
- _FndBox* pBox = rBoxes[i];
+ _FndBox const*const pBox = &rBoxes[i];
const _FndLines& rLines = pBox->GetLines();
// Amount of Boxes of all Lines is uneven -> no symmetry
@@ -864,8 +864,8 @@ sal_uInt16 FlatFndBox::GetColCount(const _FndBox& rBox)
const _FndBoxes& rBoxes = rLines[i].GetBoxes();
for( sal_uInt16 j=0; j < rBoxes.size(); ++j )
// Iterate recursively over the Lines
- nCount += rBoxes[j]->GetLines().size()
- ? GetColCount(*rBoxes[j]) : 1;
+ nCount += (rBoxes[j].GetLines().size())
+ ? GetColCount(rBoxes[j]) : 1;
if( nSum < nCount )
nSum = nCount;
@@ -888,9 +888,9 @@ sal_uInt16 FlatFndBox::GetRowCount(const _FndBox& rBox)
const _FndBoxes& rBoxes = rLines[i].GetBoxes();
sal_uInt16 nLn = 1;
for(sal_uInt16 j=0; j < rBoxes.size(); ++j)
- if( rBoxes[j]->GetLines().size() )
+ if (rBoxes[j].GetLines().size())
// Iterate recursively over the Lines
- nLn = Max(GetRowCount(*rBoxes[j]), nLn);
+ nLn = Max(GetRowCount(rBoxes[j]), nLn);
nLines = nLines + nLn;
}
@@ -915,7 +915,7 @@ void FlatFndBox::FillFlat(const _FndBox& rBox, sal_Bool bLastBox)
for( sal_uInt16 j = 0; j < rBoxes.size(); ++j )
{
// Check the Box if it's an atomic one
- const _FndBox* pBox = rBoxes[ j ];
+ const _FndBox *const pBox = &rBoxes[j];
if( !pBox->GetLines().size() )
{