diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-12 15:09:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 10:52:46 +0200 |
commit | 9045d0bf35c9b4d5f6d8f791017124341abf8d4f (patch) | |
tree | 04c28c25dbabe5a9b1e2bb137abedcbdea6e31d9 /basctl/source/dlged | |
parent | 6d4f97b05b1bfe5aae395134b2dc35805c23b8c4 (diff) |
loplugin: defaultparams
Change-Id: I89796134a0cce33279ba7f02492857a656e8aee3
Diffstat (limited to 'basctl/source/dlged')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 6 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedfunc.cxx | 6 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 20 |
3 files changed, 16 insertions, 16 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 56c42c930f94..47f244417cef 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -237,7 +237,7 @@ DlgEditor::DlgEditor ( pDlgEdView->SetGridVisible( bGridVisible ); pDlgEdView->SetDragStripes(false); - pDlgEdView->SetDesignMode(true); + pDlgEdView->SetDesignMode(); ::comphelper::disposeComponent( m_xControlContainer ); @@ -523,7 +523,7 @@ void DlgEditor::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect pDlgEdForm->SetSnapRect( Rectangle( aPos, aSize ) ); pDlgEdForm->EndListening(false); pDlgEdForm->SetPropsFromRect(); - pDlgEdForm->GetDlgEditor().SetDialogModelChanged(true); + pDlgEdForm->GetDlgEditor().SetDialogModelChanged(); pDlgEdForm->StartListening(); // set position and size of controls @@ -991,7 +991,7 @@ void DlgEditor::Paste() pDlgEdView->MarkListHasChanged(); // dialog model changed - SetDialogModelChanged(true); + SetDialogModelChanged(); } } } diff --git a/basctl/source/dlged/dlgedfunc.cxx b/basctl/source/dlged/dlgedfunc.cxx index 7e31ae7c9f32..3ebe2f8ee91d 100644 --- a/basctl/source/dlged/dlgedfunc.cxx +++ b/basctl/source/dlged/dlgedfunc.cxx @@ -278,7 +278,7 @@ bool DlgEdFunc::KeyInput( const KeyEvent& rKEvt ) // switch snapping off if ( !bWasNoSnap ) - const_cast<SdrDragStat&>(rDragStat).SetNoSnap(true); + const_cast<SdrDragStat&>(rDragStat).SetNoSnap(); if ( bWasSnapEnabled ) rView.SetSnapEnabled(false); @@ -334,12 +334,12 @@ bool DlgEdFunc::KeyInput( const KeyEvent& rKEvt ) DlgEdFuncInsert::DlgEdFuncInsert (DlgEditor& rParent_) : DlgEdFunc(rParent_) { - rParent.GetView().SetCreateMode(true); + rParent.GetView().SetCreateMode(); } DlgEdFuncInsert::~DlgEdFuncInsert() { - rParent.GetView().SetEditMode( true ); + rParent.GetView().SetEditMode(); } bool DlgEdFuncInsert::MouseButtonDown( const MouseEvent& rMEvt ) diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index 5aae79bd061d..f43879cc469e 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -940,7 +940,7 @@ void DlgEdObj::NbcMove( const Size& rSize ) StartListening(); // dialog model changed - GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(true); + GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(); } void DlgEdObj::NbcResize(const Point& rRef, const Fraction& xFract, const Fraction& yFract) @@ -957,7 +957,7 @@ void DlgEdObj::NbcResize(const Point& rRef, const Fraction& xFract, const Fracti StartListening(); // dialog model changed - GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(true); + GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(); } bool DlgEdObj::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) @@ -1049,7 +1049,7 @@ void DlgEdObj::SetDefaults() } // dialog model changed - pDlgEdForm->GetDlgEditor().SetDialogModelChanged(true); + pDlgEdForm->GetDlgEditor().SetDialogModelChanged(); } } @@ -1138,7 +1138,7 @@ void SAL_CALL DlgEdObj::_propertyChange( const css::beans::PropertyChangeEvent& return; // dialog model changed - rDlgEditor.SetDialogModelChanged(true); + rDlgEditor.SetDialogModelChanged(); // update position and size if ( evt.PropertyName == DLGED_PROP_POSITIONX || evt.PropertyName == DLGED_PROP_POSITIONY || @@ -1185,7 +1185,7 @@ void SAL_CALL DlgEdObj::_elementInserted(const css::container::ContainerEvent& ) if (isListening()) { // dialog model changed - GetDialogEditor().SetDialogModelChanged(true); + GetDialogEditor().SetDialogModelChanged(); } } @@ -1194,7 +1194,7 @@ void SAL_CALL DlgEdObj::_elementReplaced(const css::container::ContainerEvent& ) if (isListening()) { // dialog model changed - GetDialogEditor().SetDialogModelChanged(true); + GetDialogEditor().SetDialogModelChanged(); } } @@ -1203,7 +1203,7 @@ void SAL_CALL DlgEdObj::_elementRemoved(const css::container::ContainerEvent& ) if (isListening()) { // dialog model changed - GetDialogEditor().SetDialogModelChanged(true); + GetDialogEditor().SetDialogModelChanged(); } } @@ -1600,7 +1600,7 @@ void DlgEdForm::NbcMove( const Size& rSize ) } // dialog model changed - GetDlgEditor().SetDialogModelChanged(true); + GetDlgEditor().SetDialogModelChanged(); } void DlgEdForm::NbcResize(const Point& rRef, const Fraction& xFract, const Fraction& yFract) @@ -1622,7 +1622,7 @@ void DlgEdForm::NbcResize(const Point& rRef, const Fraction& xFract, const Fract } // dialog model changed - GetDlgEditor().SetDialogModelChanged(true); + GetDlgEditor().SetDialogModelChanged(); } bool DlgEdForm::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) @@ -1636,7 +1636,7 @@ bool DlgEdForm::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) SetPropsFromRect(); // dialog model changed - GetDlgEditor().SetDialogModelChanged(true); + GetDlgEditor().SetDialogModelChanged(); // start listening StartListening(); |