diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:39 +0200 |
commit | a003d8c59d0324ab3f44ec608f473e654ce48902 (patch) | |
tree | 0c85a381b784f9dc24a6e74aa3448b7eb4739a8c /svx/source/svdraw | |
parent | 65fe84d273a4fe099cd03be088165672788cf32e (diff) |
loplugin:defaultparams
Change-Id: I4e344e780baae6c9828d0d708dfb0a9390af533a
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdedtv1.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdoutl.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdpntv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdtext.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdundo.cxx | 16 | ||||
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 2 |
10 files changed, 18 insertions, 18 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index f1af9617e50c..2040694f077b 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -1068,7 +1068,7 @@ void SdrDragMovHdl::MoveSdrDrag(const Point& rNoSnapPnt) if (getSdrDragView().IsMirrorAllowed(true,true)) { // limited - if (!getSdrDragView().IsMirrorAllowed(false)) nSA=4500; + if (!getSdrDragView().IsMirrorAllowed()) nSA=4500; if (!getSdrDragView().IsMirrorAllowed(true)) nSA=9000; } @@ -2581,7 +2581,7 @@ bool SdrDragMirror::BeginSdrDrag() bool b45=b90 || (std::abs(aDif.X()) == std::abs(aDif.Y())); nAngle=NormAngle360(GetAngle(aDif)); - if (!getSdrDragView().IsMirrorAllowed(false) && !b45) + if (!getSdrDragView().IsMirrorAllowed() && !b45) return false; // free choice of axis angle not allowed if (!getSdrDragView().IsMirrorAllowed() && !b90) diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx index f933e23d072f..712dd85df9ec 100644 --- a/svx/source/svdraw/svdedtv1.cxx +++ b/svx/source/svdraw/svdedtv1.cxx @@ -769,7 +769,7 @@ void SdrEditView::SetNotPersistAttrToMarked(const SfxItemSet& rAttr, bool /*bRep } if (rAttr.GetItemState(SDRATTR_HORZSHEARALL,true,&pPoolItem)==SfxItemState::SET) { long nAngle=static_cast<const SdrHorzShearAllItem*>(pPoolItem)->GetValue(); - ShearMarkedObj(aAllSnapRect.Center(),nAngle,false); + ShearMarkedObj(aAllSnapRect.Center(),nAngle); } if (rAttr.GetItemState(SDRATTR_VERTSHEARALL,true,&pPoolItem)==SfxItemState::SET) { long nAngle=static_cast<const SdrVertShearAllItem*>(pPoolItem)->GetValue(); diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 6a2e179c71af..353261ae17c8 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -1715,7 +1715,7 @@ bool SdrObjEditView::SetAttributes(const SfxItemSet& rSet, bool bReplaceAll) ImpTakeDescriptionStr(STR_EditSetAttributes,aStr); BegUndo(aStr); AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*mxTextEditObj.get())); - AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*mxTextEditObj.get(),false)); + AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*mxTextEditObj.get())); EndUndo(); } diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 06494c643fc0..e4ca8d722ce8 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -1453,7 +1453,7 @@ bool SdrMarkView::MarkNextObj(const Point& rPnt, short nTol, bool bPrev) } } // nothing found, in this case, just select an object - if (pTopMarkHit==NULL) return MarkObj(rPnt,sal_uInt16(nTol),false); + if (pTopMarkHit==NULL) return MarkObj(rPnt,sal_uInt16(nTol)); SdrObject* pTopObjHit=pTopMarkHit->GetMarkedSdrObj(); SdrObjList* pObjList=pTopObjHit->GetObjList(); diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index be3953cae14a..297313fc47b3 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1244,7 +1244,7 @@ void SdrTextObj::ImpInitDrawOutliner( SdrOutliner& rOutl ) const nOutlinerMode = OUTLINERMODE_TEXTOBJECT; rOutl.Init( nOutlinerMode ); - rOutl.SetGlobalCharStretching(100); + rOutl.SetGlobalCharStretching(); EEControlBits nStat=rOutl.GetControlWord(); nStat &= ~EEControlBits(EEControlBits::STRETCHING|EEControlBits::AUTOPAGESIZE); rOutl.SetControlWord(nStat); diff --git a/svx/source/svdraw/svdoutl.cxx b/svx/source/svdraw/svdoutl.cxx index a55926ca3e81..63f1ef49fe98 100644 --- a/svx/source/svdraw/svdoutl.cxx +++ b/svx/source/svdraw/svdoutl.cxx @@ -49,7 +49,7 @@ void SdrOutliner::SetTextObj( const SdrTextObj* pObj ) nOutlinerMode2 = OUTLINERMODE_TEXTOBJECT; Init( nOutlinerMode2 ); - SetGlobalCharStretching(100); + SetGlobalCharStretching(); EEControlBits nStat = GetControlWord(); nStat &= ~EEControlBits( EEControlBits::STRETCHING | EEControlBits::AUTOPAGESIZE ); diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index 2960680acbfb..9ca6864e92fe 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -1072,7 +1072,7 @@ void SdrPaintView::SetDefaultStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRe SfxWhichIter aIter(pStyleSheet->GetItemSet()); sal_uInt16 nWhich=aIter.FirstWhich(); while (nWhich!=0) { - if (pStyleSheet->GetItemSet().GetItemState(nWhich,true)==SfxItemState::SET) { + if (pStyleSheet->GetItemSet().GetItemState(nWhich)==SfxItemState::SET) { maDefaultAttr.ClearItem(nWhich); } nWhich=aIter.NextWhich(); diff --git a/svx/source/svdraw/svdtext.cxx b/svx/source/svdraw/svdtext.cxx index b9d53d9db968..303d5f711628 100644 --- a/svx/source/svdraw/svdtext.cxx +++ b/svx/source/svdraw/svdtext.cxx @@ -127,7 +127,7 @@ void SdrText::SetModel( SdrModel* pNewModel ) if( mpOutlinerParaObject && pOldModel!=NULL && pNewModel!=NULL) { - bool bHgtSet = GetObjectItemSet().GetItemState(EE_CHAR_FONTHEIGHT, true) == SfxItemState::SET; + bool bHgtSet = GetObjectItemSet().GetItemState(EE_CHAR_FONTHEIGHT) == SfxItemState::SET; MapUnit aOldUnit(pOldModel->GetScaleUnit()); MapUnit aNewUnit(pNewModel->GetScaleUnit()); diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index 6b6e676748fe..5c8599385caa 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -1515,14 +1515,14 @@ void SdrUndoDelPage::Redo() OUString SdrUndoDelPage::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoDelPage,aStr); return aStr; } OUString SdrUndoDelPage::GetSdrRepeatComment(SdrView& /*rView*/) const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoDelPage,aStr); return aStr; } @@ -1554,7 +1554,7 @@ void SdrUndoNewPage::Redo() OUString SdrUndoNewPage::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoNewPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoNewPage,aStr); return aStr; } @@ -1563,14 +1563,14 @@ OUString SdrUndoNewPage::GetComment() const OUString SdrUndoCopyPage::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoCopPage,aStr); return aStr; } OUString SdrUndoCopyPage::GetSdrRepeatComment(SdrView& /*rView*/) const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoCopPage,aStr); return aStr; } @@ -1599,7 +1599,7 @@ void SdrUndoSetPageNum::Redo() OUString SdrUndoSetPageNum::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoMovPage,aStr,0); + ImpTakeDescriptionStr(STR_UndoMovPage,aStr); return aStr; } @@ -1642,7 +1642,7 @@ void SdrUndoPageRemoveMasterPage::Redo() OUString SdrUndoPageRemoveMasterPage::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoDelPageMasterDscr,aStr,0); + ImpTakeDescriptionStr(STR_UndoDelPageMasterDscr,aStr); return aStr; } @@ -1686,7 +1686,7 @@ void SdrUndoPageChangeMasterPage::Redo() OUString SdrUndoPageChangeMasterPage::GetComment() const { OUString aStr; - ImpTakeDescriptionStr(STR_UndoChgPageMasterDscr,aStr,0); + ImpTakeDescriptionStr(STR_UndoChgPageMasterDscr,aStr); return aStr; } diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index def531e232ec..c276991d749c 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -1115,7 +1115,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice* } bool bNo=false; if (!IsMirrorAllowed(true,true)) bNo=true; // any mirroring is forbidden - if (!IsMirrorAllowed(false) && !b45) bNo=true; // mirroring freely is forbidden + if (!IsMirrorAllowed() && !b45) bNo=true; // mirroring freely is forbidden if (!IsMirrorAllowed(true) && !b90) bNo=true; // mirroring horizontally/vertically is allowed if (bNo) return Pointer(PointerStyle::NotAllowed); if (b90) { |