diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-19 14:03:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-26 14:30:09 +0200 |
commit | deaa69b1558ef76f5338a714fdedaeccf9394096 (patch) | |
tree | aca62c2ec074c3418aefa4046cf9b1a935ddda3f /sw/source/core/doc/doclay.cxx | |
parent | 5c47e5f63a79a9e72ec4a100786b1bbf65137ed4 (diff) |
Convert SV_DECL_PTRARR_SORT(SwSelBoxes) to o3tl::sorted_vector
Change-Id: I4af9e86257a9e40b91351fd34ac70fe053d02367
Diffstat (limited to 'sw/source/core/doc/doclay.cxx')
-rw-r--r-- | sw/source/core/doc/doclay.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx index 18bd0c2c4e50..d6193e260d57 100644 --- a/sw/source/core/doc/doclay.cxx +++ b/sw/source/core/doc/doclay.cxx @@ -784,7 +784,7 @@ SwFlyFrmFmt* SwDoc::MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet, SwPosition aPos( aIndex ); aPos.nContent.Assign( pNode, 0 ); - if( pSelBoxes && pSelBoxes->Count() ) + if( pSelBoxes && !pSelBoxes->empty() ) { // Table selection // Copy parts of a table: create a table with the same width as the @@ -799,7 +799,7 @@ SwFlyFrmFmt* SwDoc::MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet, SwTable& rTbl = pTblNd->GetTable(); // Did we select the whole table? - if( pSelBoxes->Count() == rTbl.GetTabSortBoxes().size() ) + if( pSelBoxes->size() == rTbl.GetTabSortBoxes().size() ) { // move the whole table SwNodeRange aRg( *pTblNd, 0, *pTblNd->EndOfSectionNode(), 1 ); |