diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-13 01:44:03 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-13 01:44:03 -0500 |
commit | bf9499781bc5d9d8ccb08681a25a9ec4312c8f82 (patch) | |
tree | dd7d81b8fb903c33fa7a143452a7d02fd37a6ab4 /sc/source/ui/view/dbfunc3.cxx | |
parent | eaa9f3425196260798e750a5564522dfa2b4c863 (diff) |
ScDPCollection is no longer derived from ScCollection.
ScCollection is another redundant data structure that could easily
be replaced with boost::ptr_vector or any of its siblings.
Diffstat (limited to 'sc/source/ui/view/dbfunc3.cxx')
-rw-r--r-- | sc/source/ui/view/dbfunc3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index 3db93dee0d96..55ac3d55ef7c 100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -708,8 +708,8 @@ ULONG RefreshDPObject( ScDPObject *pDPObj, ScDocument *pDoc, ScDocShell *pDocSh, { //Refresh all dpobjects ScDPCollection* pDPCollection = pDoc->GetDPCollection(); - USHORT nCount = pDPCollection->GetCount(); - for (USHORT i=0; i<nCount; i++) + size_t nCount = pDPCollection->GetCount(); + for (size_t i=0; i<nCount; ++i) { if ( (*pDPCollection)[i]->GetCacheId() == pDPObj->GetCacheId() ) { |