summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-04 12:27:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-04 15:11:34 +0200
commit3154770b49f84981432ccc3756ceb1840ff8d8a0 (patch)
tree5282c81a84009ca0030bcdbcf75266b791c0d824 /sd
parentdc7fdd7e75ba4089e3c385479fd6b303d518efe5 (diff)
CreateUndoRemoveObject default arg is always used
Change-Id: I5676281be56ff454962900fe7500d078b1f9e7e9 Reviewed-on: https://gerrit.libreoffice.org/70252 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/undo/undofactory.hxx2
-rw-r--r--sd/inc/undo/undoobjects.hxx2
-rw-r--r--sd/source/core/undo/undofactory.cxx4
-rw-r--r--sd/source/core/undo/undoobjects.cxx4
4 files changed, 6 insertions, 6 deletions
diff --git a/sd/inc/undo/undofactory.hxx b/sd/inc/undo/undofactory.hxx
index 742d0b358e76..e06f1e9ae029 100644
--- a/sd/inc/undo/undofactory.hxx
+++ b/sd/inc/undo/undofactory.hxx
@@ -28,7 +28,7 @@ namespace sd
class UndoFactory : public SdrUndoFactory
{
public:
- virtual std::unique_ptr<SdrUndoAction> CreateUndoRemoveObject( SdrObject& rObject, bool bOrdNumDirect = false) override;
+ virtual std::unique_ptr<SdrUndoAction> CreateUndoRemoveObject(SdrObject& rObject) override;
virtual std::unique_ptr<SdrUndoAction> CreateUndoDeleteObject( SdrObject& rObject, bool bOrdNumDirect = false) override;
virtual std::unique_ptr<SdrUndoAction> CreateUndoObjectSetText( SdrObject& rNewObj, sal_Int32 nText ) override;
virtual std::unique_ptr<SdrUndoAction> CreateUndoReplaceObject( SdrObject& rOldObject, SdrObject& rNewObject, bool bOrdNumDirect = false ) override;
diff --git a/sd/inc/undo/undoobjects.hxx b/sd/inc/undo/undoobjects.hxx
index 5121bc40c5f7..ad2f3d63fb00 100644
--- a/sd/inc/undo/undoobjects.hxx
+++ b/sd/inc/undo/undoobjects.hxx
@@ -49,7 +49,7 @@ private:
class UndoRemoveObject : public SdrUndoRemoveObj, public UndoRemovePresObjectImpl
{
public:
- UndoRemoveObject( SdrObject& rObject, bool bOrdNumDirect );
+ UndoRemoveObject(SdrObject& rObject);
virtual void Undo() override;
virtual void Redo() override;
diff --git a/sd/source/core/undo/undofactory.cxx b/sd/source/core/undo/undofactory.cxx
index e00f2f2f94e0..b289853e11f7 100644
--- a/sd/source/core/undo/undofactory.cxx
+++ b/sd/source/core/undo/undofactory.cxx
@@ -22,9 +22,9 @@
using namespace sd;
-std::unique_ptr<SdrUndoAction> UndoFactory::CreateUndoRemoveObject( SdrObject& rObject, bool bOrdNumDirect )
+std::unique_ptr<SdrUndoAction> UndoFactory::CreateUndoRemoveObject(SdrObject& rObject)
{
- return std::make_unique<UndoRemoveObject>( rObject, bOrdNumDirect );
+ return std::make_unique<UndoRemoveObject>(rObject);
}
std::unique_ptr<SdrUndoAction> UndoFactory::CreateUndoDeleteObject( SdrObject& rObject, bool bOrdNumDirect )
diff --git a/sd/source/core/undo/undoobjects.cxx b/sd/source/core/undo/undoobjects.cxx
index 4437e4005cb6..10bd0cdf6a92 100644
--- a/sd/source/core/undo/undoobjects.cxx
+++ b/sd/source/core/undo/undoobjects.cxx
@@ -91,8 +91,8 @@ void UndoRemovePresObjectImpl::Redo()
mpUndoUsercall->Redo();
}
-UndoRemoveObject::UndoRemoveObject( SdrObject& rObject, bool bOrdNumDirect )
-: SdrUndoRemoveObj( rObject, bOrdNumDirect ), UndoRemovePresObjectImpl( rObject )
+UndoRemoveObject::UndoRemoveObject( SdrObject& rObject )
+: SdrUndoRemoveObj( rObject ), UndoRemovePresObjectImpl( rObject )
, mxSdrObject(&rObject)
{
}