diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-12-25 17:06:46 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-12-25 18:21:11 +0100 |
commit | 257ff5bea3a40646e7dae88f708c136be93ed1b2 (patch) | |
tree | 3bc51290ad3821f34f4de68d9596c795aa633562 /sw/source/core/doc/docfly.cxx | |
parent | d07f0997c54e9cef31d996ebeb2aabfb4b4e0265 (diff) |
sal_uInt16 to size_t
Change-Id: I66239d89049f1386e5725e540c4dcc2b09c3ebf0
Diffstat (limited to 'sw/source/core/doc/docfly.cxx')
-rw-r--r-- | sw/source/core/doc/docfly.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx index 67cddeadc6fc..5548ccdd1928 100644 --- a/sw/source/core/doc/docfly.cxx +++ b/sw/source/core/doc/docfly.cxx @@ -72,18 +72,18 @@ using namespace ::com::sun::star; -sal_uInt16 SwDoc::GetFlyCount( FlyCntType eType, bool bIgnoreTextBoxes ) const +size_t SwDoc::GetFlyCount( FlyCntType eType, bool bIgnoreTextBoxes ) const { const SwFrmFmts& rFmts = *GetSpzFrmFmts(); - sal_uInt16 nSize = rFmts.size(); - sal_uInt16 nCount = 0; + const size_t nSize = rFmts.size(); + size_t nCount = 0; const SwNodeIndex* pIdx; std::set<const SwFrmFmt*> aTextBoxes; if (bIgnoreTextBoxes) aTextBoxes = SwTextBoxHelper::findTextBoxes(this); - for ( sal_uInt16 i = 0; i < nSize; i++) + for ( size_t i = 0; i < nSize; ++i) { const SwFrmFmt* pFlyFmt = rFmts[ i ]; @@ -123,19 +123,19 @@ sal_uInt16 SwDoc::GetFlyCount( FlyCntType eType, bool bIgnoreTextBoxes ) const } /// @attention If you change this, also update SwXFrameEnumeration in unocoll. -SwFrmFmt* SwDoc::GetFlyNum( sal_uInt16 nIdx, FlyCntType eType, bool bIgnoreTextBoxes ) +SwFrmFmt* SwDoc::GetFlyNum( size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes ) { SwFrmFmts& rFmts = *GetSpzFrmFmts(); SwFrmFmt* pRetFmt = 0; - sal_uInt16 nSize = rFmts.size(); + const size_t nSize = rFmts.size(); const SwNodeIndex* pIdx; - sal_uInt16 nCount = 0; + size_t nCount = 0; std::set<const SwFrmFmt*> aTextBoxes; if (bIgnoreTextBoxes) aTextBoxes = SwTextBoxHelper::findTextBoxes(this); - for( sal_uInt16 i = 0; !pRetFmt && i < nSize; ++i ) + for( size_t i = 0; !pRetFmt && i < nSize; ++i ) { SwFrmFmt* pFlyFmt = rFmts[ i ]; |