diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-28 15:44:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-29 08:48:41 +0200 |
commit | 6140ca9f1d728475e332f9fa96ee62dda58687ea (patch) | |
tree | 284733762d73048939675ca39a8932a3ca2009f5 /sfx2/source/dialog | |
parent | afcf1ecee1af1312551583b9fc860c1881ba2134 (diff) |
loplugin:loopvartoosmall
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 0e47101b7385..eb65995d2719 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -302,7 +302,7 @@ SfxDocumentInfoItem::SfxDocumentInfoItem( const SfxDocumentInfoItem& rItem ) , m_bDeleteUserData( rItem.m_bDeleteUserData ) , m_bUseUserData( rItem.m_bUseUserData ) { - for ( sal_uInt32 i = 0; i < rItem.m_aCustomProperties.size(); i++ ) + for ( size_t i = 0; i < rItem.m_aCustomProperties.size(); i++ ) { CustomProperty* pProp = new CustomProperty( rItem.m_aCustomProperties[i]->m_sName, rItem.m_aCustomProperties[i]->m_aValue ); @@ -421,7 +421,7 @@ void SfxDocumentInfoItem::UpdateDocumentInfo( } } - for ( sal_uInt32 k = 0; k < m_aCustomProperties.size(); ++k ) + for ( size_t k = 0; k < m_aCustomProperties.size(); ++k ) { try { @@ -456,7 +456,7 @@ void SfxDocumentInfoItem::SetUseUserData( bool bSet ) std::vector< CustomProperty* > SfxDocumentInfoItem::GetCustomProperties() const { std::vector< CustomProperty* > aRet; - for ( sal_uInt32 i = 0; i < m_aCustomProperties.size(); i++ ) + for ( size_t i = 0; i < m_aCustomProperties.size(); i++ ) { CustomProperty* pProp = new CustomProperty( m_aCustomProperties[i]->m_sName, m_aCustomProperties[i]->m_aValue ); @@ -468,7 +468,7 @@ std::vector< CustomProperty* > SfxDocumentInfoItem::GetCustomProperties() const void SfxDocumentInfoItem::ClearCustomProperties() { - for ( sal_uInt32 i = 0; i < m_aCustomProperties.size(); i++ ) + for ( size_t i = 0; i < m_aCustomProperties.size(); i++ ) delete m_aCustomProperties[i]; m_aCustomProperties.clear(); } @@ -2253,7 +2253,7 @@ void SfxCustomPropertiesPage::Reset( const SfxItemSet* rItemSet ) m_pPropertiesCtrl->ClearAllLines(); const SfxDocumentInfoItem& rInfoItem = static_cast<const SfxDocumentInfoItem &>(rItemSet->Get(SID_DOCINFO)); std::vector< CustomProperty* > aCustomProps = rInfoItem.GetCustomProperties(); - for ( sal_uInt32 i = 0; i < aCustomProps.size(); i++ ) + for ( size_t i = 0; i < aCustomProps.size(); i++ ) { m_pPropertiesCtrl->AddLine( aCustomProps[i]->m_sName, aCustomProps[i]->m_aValue, false ); } diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 8dc5303a5572..1b1b33b810a1 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -448,7 +448,7 @@ void SfxSplitWindow::Split() // apply FIXED item size as 'original' item size to improve layouting of undock-dock-cycle of a window { DeactivateUpdateMode aDeactivateUpdateMode( *this ); - for ( sal_uInt16 i = 0; i < aNewOrgSizes.size(); ++i ) + for ( size_t i = 0; i < aNewOrgSizes.size(); ++i ) { SetItemSize( aNewOrgSizes[i].first, aNewOrgSizes[i].second ); } @@ -792,7 +792,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, } // apply new item sizes DeactivateUpdateMode aDeactivateUpdateMode( *this ); - for ( sal_uInt16 i = 0; i < aNewOrgSizes.size(); ++i ) + for ( size_t i = 0; i < aNewOrgSizes.size(); ++i ) { SetItemSize( aNewOrgSizes[i].first, aNewOrgSizes[i].second ); } diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 833a8afedae7..e7952ca6b7ef 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -547,14 +547,14 @@ public: aName(rName), aParent(rParent), pChildren(0) {} ~StyleTree_Impl(); void Put(StyleTree_Impl* pIns, sal_uIntPtr lPos=ULONG_MAX); - sal_uIntPtr Count(); + size_t Count(); OUString getName() { return aName; } OUString getParent() { return aParent; } StyleTree_Impl *operator[](size_t idx) const { return pChildren[idx]; } }; -sal_uIntPtr StyleTree_Impl::Count() +size_t StyleTree_Impl::Count() { return pChildren.size(); } @@ -642,7 +642,7 @@ SvTreeListEntry* FillBox_Impl(SvTreeListBox* pBox, pBox->GetModel()->InvalidateEntry(pTreeListEntry); - for(sal_uInt16 i = 0; i < pEntry->Count(); ++i) + for(size_t i = 0; i < pEntry->Count(); ++i) { FillBox_Impl(pBox, (*pEntry)[i], rEntries, eStyleFamily, pTreeListEntry); } |