summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:00 +0200
commit34100b30c87123fc631d5536158ffb6443258e40 (patch)
tree23b9499ecb0bf819ff11d615bc8a0833d47f2e97 /sd/source/ui/view
parent4b603aaa4adde6789099f2fd7e95c11df4116c0c (diff)
loplugin:defaultparams
Change-Id: I5f3b978823ec43519744f49739b9b4ee6ca1e1e9
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/drawview.cxx2
-rw-r--r--sd/source/ui/view/drtxtob.cxx2
-rw-r--r--sd/source/ui/view/drviews2.cxx4
-rw-r--r--sd/source/ui/view/drviewse.cxx2
-rw-r--r--sd/source/ui/view/drviewsf.cxx2
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx2
-rw-r--r--sd/source/ui/view/viewshe3.cxx4
-rw-r--r--sd/source/ui/view/viewshel.cxx2
8 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx
index 9df992965cc2..c2d914e94460 100644
--- a/sd/source/ui/view/drawview.cxx
+++ b/sd/source/ui/view/drawview.cxx
@@ -432,7 +432,7 @@ bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAtt
// is there a masterpage edit?
if (mpDrawViewShell && mpDrawViewShell->GetEditMode() == EM_MASTERPAGE)
{
- if (IsPresObjSelected(false, true))
+ if (IsPresObjSelected(false))
{
ScopedVclPtr<InfoBox>::Create(mpDrawViewShell->GetActiveWindow(),
SD_RESSTR(STR_ACTION_NOTPOSSIBLE))->Execute();
diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx
index 900ea482b165..1fa225f8aa51 100644
--- a/sd/source/ui/view/drtxtob.cxx
+++ b/sd/source/ui/view/drtxtob.cxx
@@ -138,7 +138,7 @@ void TextObjectBar::GetCharState( SfxItemSet& rSet )
//aKern.SetWhich(SID_ATTR_CHAR_KERNING);
rSet.Put(aKern);
- SfxItemState eState = aCharAttrSet.GetItemState( EE_CHAR_KERNING, true );
+ SfxItemState eState = aCharAttrSet.GetItemState( EE_CHAR_KERNING );
if ( eState == SfxItemState::DONTCARE )
{
rSet.InvalidateItem(EE_CHAR_KERNING);
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index e81d073f9f45..ed339232a135 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -1153,7 +1153,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
case SID_COPYOBJECTS:
{
- if ( mpDrawView->IsPresObjSelected(false, true) )
+ if ( mpDrawView->IsPresObjSelected(false) )
{
::sd::Window* pWindow = GetActiveWindow();
ScopedVclPtr<InfoBox>::Create(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE))->Execute();
@@ -2397,7 +2397,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
}
WaitObject aWait( GetActiveWindow() );
- mpDrawView->ConvertMarkedObjTo3D(true);
+ mpDrawView->ConvertMarkedObjTo3D();
}
}
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index f3ec602de426..60002348136d 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -638,7 +638,7 @@ void DrawViewShell::FuDeleteSelectedObjects()
bool bConsumed = false;
//if any placeholders are selected
- if (mpDrawView->IsPresObjSelected(false, true, false))
+ if (mpDrawView->IsPresObjSelected(false))
{
//If there are placeholders in the list which can be toggled
//off in edit->master->master elements then do that here,
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx
index bd6070a3ee53..e6641739f981 100644
--- a/sd/source/ui/view/drviewsf.cxx
+++ b/sd/source/ui/view/drviewsf.cxx
@@ -737,7 +737,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
rSet.Put( SfxBoolItem( SID_SET_SUB_SCRIPT, true ) );
}
- eState = pSet->GetItemState( EE_CHAR_KERNING, true );
+ eState = pSet->GetItemState( EE_CHAR_KERNING );
if ( eState == SfxItemState::DONTCARE )
{
rSet.InvalidateItem(EE_CHAR_KERNING);
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 576923300a4f..41fb110043a6 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -298,7 +298,7 @@ bool ChangePlaceholderTag::MouseButtonDown( const MouseEvent& /*rMEvt*/, SmartHd
{
SdrPageView* pPV = mrView.GetSdrPageView();
mrView.UnmarkAllObj(pPV );
- mrView.MarkObj(mxPlaceholderObj.get(), pPV, false);
+ mrView.MarkObj(mxPlaceholderObj.get(), pPV);
}
}
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 7ed8a970f5d8..06892405f074 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -141,7 +141,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1072 ff.
OUString aTmp(SVT_RESSTR(STR_UNDO));
- aTmp += pUndoManager->GetUndoActionComment(0);
+ aTmp += pUndoManager->GetUndoActionComment();
rSet.Put(SfxStringItem(SID_UNDO, aTmp));
}
else
@@ -168,7 +168,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1081 ff.
OUString aTmp(SVT_RESSTR(STR_REDO));
- aTmp += pUndoManager->GetRedoActionComment(0);
+ aTmp += pUndoManager->GetRedoActionComment();
rSet.Put(SfxStringItem(SID_REDO, aTmp));
}
else
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index b00aaf9c4192..4f92351f2638 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -917,7 +917,7 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16&
aNewAttr.Put(*pItem, EE_PARA_NUMBULLET);
- if(bTitle && aNewAttr.GetItemState(EE_PARA_NUMBULLET,true) == SfxItemState::SET )
+ if(bTitle && aNewAttr.GetItemState(EE_PARA_NUMBULLET) == SfxItemState::SET )
{
const SvxNumBulletItem* pBulletItem = static_cast<const SvxNumBulletItem*>(aNewAttr.GetItem(EE_PARA_NUMBULLET));
SvxNumRule* pRule = pBulletItem->GetNumRule();