summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx4
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx4
-rw-r--r--sw/source/uibase/uno/unotxvw.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx
index 2aefdedb63c6..8fdac9743acb 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -520,7 +520,7 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq)
if(1L == pSdrView->GetMarkedObjectCount())
{
// #i68101#
- SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(0L);
+ SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(0);
OSL_ENSURE(pSelected, "DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
OUString aName(pSelected->GetName());
@@ -549,7 +549,7 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq)
if(1L == pSdrView->GetMarkedObjectCount())
{
- SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(0L);
+ SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(0);
OSL_ENSURE(pSelected, "DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
OUString aTitle(pSelected->GetTitle());
OUString aDescription(pSelected->GetDescription());
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index 5c895ae64028..f5eb9aa1895d 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -659,11 +659,11 @@ bool SwView::AreOnlyFormsSelected() const
SdrView* pSdrView = GetWrtShell().GetDrawView();
const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList();
- sal_uInt32 nCount = rMarkList.GetMarkCount();
+ const size_t nCount = rMarkList.GetMarkCount();
if (nCount)
{
- for (sal_uInt32 i = 0; i < nCount; i++)
+ for (size_t i = 0; i < nCount; ++i)
{
// Except controls, are still normal draw objects selected?
SdrObject *pSdrObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx
index 05fd21692b3d..1f15014dfc9b 100644
--- a/sw/source/uibase/uno/unotxvw.cxx
+++ b/sw/source/uibase/uno/unotxvw.cxx
@@ -407,7 +407,7 @@ uno::Any SwXTextView::getSelection()
comphelper::getProcessComponentContext());
const SdrMarkList& rMarkList = rSh.GetDrawView()->GetMarkedObjectList();
- for(sal_uLong i = 0; i < rMarkList.GetMarkCount(); ++i)
+ for(size_t i = 0; i < rMarkList.GetMarkCount(); ++i)
{
SdrObject* pObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
uno::Reference< uno::XInterface > xInt = pSvxDrawPage->GetInterface( pObj );