diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-14 20:42:14 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-16 13:24:09 +0100 |
commit | f87a47a04a9eaae5d85a9f081536aa0b8dddf95d (patch) | |
tree | 58de2e5bea3c96c7912718cb330fdaaff1b06ef1 | |
parent | f2993962fdac764026ec60239ad7229cbc1cbe85 (diff) |
core/doc: dont use 'shortcut' that is longer than the original
Change-Id: Ib2d19c1b6af7676910208d0d07627f41379fcb4a
-rw-r--r-- | sw/source/core/doc/docdraw.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/doc/docfly.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/htmltbl.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/tblrwcl.cxx | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx index 10e2e6278a98..3dbc5f7fc9c1 100644 --- a/sw/source/core/doc/docdraw.cxx +++ b/sw/source/core/doc/docdraw.cxx @@ -491,14 +491,14 @@ _ZSortFly::_ZSortFly( const SwFrmFmt* pFrmFmt, const SwFmtAnchor* pFlyAn, if( pFmt->getIDocumentLayoutAccess()->GetCurrentViewShell() ) { // See if there is an SdrObject for it - SwFlyFrm* pFly = SwIterator<SwFlyFrm,SwFmt>::FirstElement( *pFrmFmt ); + SwFlyFrm* pFly = SwIterator<SwFlyFrm,SwFmt>( *pFrmFmt ).First(); if( pFly ) nOrdNum = pFly->GetVirtDrawObj()->GetOrdNum(); } else { // See if there is an SdrObject for it - SwFlyDrawContact* pContact = SwIterator<SwFlyDrawContact,SwFmt>::FirstElement( *pFrmFmt ); + SwFlyDrawContact* pContact = SwIterator<SwFlyDrawContact,SwFmt>( *pFrmFmt ).First(); if( pContact ) nOrdNum = pContact->GetMaster()->GetOrdNum(); } @@ -506,7 +506,7 @@ _ZSortFly::_ZSortFly( const SwFrmFmt* pFrmFmt, const SwFmtAnchor* pFlyAn, else if( RES_DRAWFRMFMT == pFmt->Which() ) { // See if there is an SdrObject for it - SwDrawContact* pContact = SwIterator<SwDrawContact,SwFmt>::FirstElement( *pFrmFmt ); + SwDrawContact* pContact = SwIterator<SwDrawContact,SwFmt>( *pFrmFmt ).First(); if( pContact ) nOrdNum = pContact->GetMaster()->GetOrdNum(); } diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx index 701dea332412..428e758ac1ca 100644 --- a/sw/source/core/doc/docfly.cxx +++ b/sw/source/core/doc/docfly.cxx @@ -1056,7 +1056,7 @@ SwChainRet SwDoc::Chain( SwFrmFmt &rSource, const SwFrmFmt &rDest ) SwFmtFrmSize aSize( rSource.GetFrmSize() ); if ( aSize.GetHeightSizeType() != ATT_FIX_SIZE ) { - SwFlyFrm *pFly = SwIterator<SwFlyFrm,SwFmt>::FirstElement( rSource ); + SwFlyFrm *pFly = SwIterator<SwFlyFrm,SwFmt>( rSource ).First(); if ( pFly ) aSize.SetHeight( pFly->Frm().Height() ); aSize.SetHeightSizeType( ATT_FIX_SIZE ); diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx index 5aa4d674987b..1520adb45091 100644 --- a/sw/source/core/doc/htmltbl.cxx +++ b/sw/source/core/doc/htmltbl.cxx @@ -407,7 +407,7 @@ sal_uInt16 SwHTMLTableLayout::GetBrowseWidthByTabFrm( sal_uInt16 SwHTMLTableLayout::GetBrowseWidthByTable( const SwDoc& rDoc ) const { sal_uInt16 nBrowseWidth = 0; - SwTabFrm* pFrm = SwIterator<SwTabFrm,SwFmt>::FirstElement( *pSwTable->GetFrmFmt() ); + SwTabFrm* pFrm = SwIterator<SwTabFrm,SwFmt>( *pSwTable->GetFrmFmt() ).First(); if( pFrm ) { nBrowseWidth = GetBrowseWidthByTabFrm( *pFrm ); diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index 9dbbec0790f5..d0bdb867b38b 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -586,7 +586,7 @@ bool SwTable::_InsertRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, // Find Lines for the layout update const bool bLayout = !IsNewModel() && - 0 != SwIterator<SwTabFrm,SwFmt>::FirstElement( *GetFrmFmt() ); + 0 != SwIterator<SwTabFrm,SwFmt>( *GetFrmFmt() ).First(); if ( bLayout ) { @@ -3552,7 +3552,7 @@ bool SwTable::SetColWidth( SwTableBox& rAktBox, sal_uInt16 eType, if( GetFrmFmt()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::BROWSE_MODE) && !rSz.GetWidthPercent() ) { - SwTabFrm* pTabFrm = SwIterator<SwTabFrm,SwFmt>::FirstElement( *GetFrmFmt() ); + SwTabFrm* pTabFrm = SwIterator<SwTabFrm,SwFmt>( *GetFrmFmt() ).First(); if( pTabFrm && pTabFrm->Prt().Width() != rSz.GetWidth() ) { |