summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-31 21:54:22 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-01 03:12:09 +0200
commita11be8a87a749f56d5c5514bbd9ffd90b3f75392 (patch)
tree45d26e7c62616e9a46a56a08402b1eacb321d9c8 /sc/source/ui/docshell
parent789c46b931672aabf79cc3b3823bdfc8736bdc8f (diff)
use size_t where possible and fix some more places
Change-Id: I43c315aa9867cf871657064fd9455700b31879ab
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docsh6.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index 283fe42e48ad..ecfed5d828e3 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -370,14 +370,14 @@ void ScDocShell::UpdateLinks()
// nicht mehr benutzte Links raus
- sal_uInt16 nCount = pLinkManager->GetLinks().size();
- for (sal_uInt16 k=nCount; k>0; )
+ size_t nCount = pLinkManager->GetLinks().size();
+ for (size_t k=nCount; k>0; )
{
--k;
::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[k];
if (pBase->ISA(ScTableLink))
{
- ScTableLink* pTabLink = (ScTableLink*)pBase;
+ ScTableLink* pTabLink = static_cast<ScTableLink*>(pBase);
if (pTabLink->IsUsed())
aNames.insert(pTabLink->GetFileName());
else // nicht mehr benutzt -> loeschen
@@ -434,14 +434,14 @@ sal_Bool ScDocShell::ReloadTabLinks()
{
sfx2::LinkManager* pLinkManager = aDocument.GetLinkManager();
- sal_Bool bAny = false;
- sal_uInt16 nCount = pLinkManager->GetLinks().size();
- for (sal_uInt16 i=0; i<nCount; i++ )
+ bool bAny = false;
+ size_t nCount = pLinkManager->GetLinks().size();
+ for (size_t i=0; i<nCount; i++ )
{
::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
if (pBase->ISA(ScTableLink))
{
- ScTableLink* pTabLink = (ScTableLink*)pBase;
+ ScTableLink* pTabLink = static_cast<ScTableLink*>(pBase);
// pTabLink->SetAddUndo(sal_False); //! Undo's zusammenfassen
// Painting only after Update() makes no sense: