summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-13 01:44:03 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-13 01:44:03 -0500
commitbf9499781bc5d9d8ccb08681a25a9ec4312c8f82 (patch)
treedd7d81b8fb903c33fa7a143452a7d02fd37a6ab4 /sc/source/ui/docshell/docsh.cxx
parenteaa9f3425196260798e750a5564522dfa2b4c863 (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/docshell/docsh.cxx')
-rw-r--r--sc/source/ui/docshell/docsh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 06a809541319..a824e79edf71 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -378,8 +378,8 @@ void ScDocShell::AfterXMLLoading(sal_Bool bRet)
ScDPCollection* pDPCollection = aDocument.GetDPCollection();
if ( pDPCollection )
{
- USHORT nDPCount = pDPCollection->GetCount();
- for (USHORT nDP=0; nDP<nDPCount; nDP++)
+ size_t nDPCount = pDPCollection->GetCount();
+ for (size_t nDP=0; nDP<nDPCount; ++nDP)
{
ScDPObject* pDPObj = (*pDPCollection)[nDP];
if ( !pDPObj->GetName().Len() )