From 23f7ef1c6d06262d1557f8978b48c5275b3d9585 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 24 Jun 2024 08:58:03 +0200 Subject: svx: prefix members of SdrUndoMoveObj See tdf#94879 for motivation. Change-Id: If81831d76617da9b9d6ac5aef2e223065e939c4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169446 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/svx/svdundo.hxx | 4 ++-- svx/source/svdraw/svdundo.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 743afaced0e3..95504986d1e1 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -188,10 +188,10 @@ public: class SVXCORE_DLLPUBLIC SdrUndoMoveObj final : public SdrUndoObj { - Size aDistance; // Distance by which we move + Size m_aDistance; // Distance by which we move public: - SdrUndoMoveObj(SdrObject& rNewObj, const Size& rDist): SdrUndoObj(rNewObj),aDistance(rDist) {} + SdrUndoMoveObj(SdrObject& rNewObj, const Size& rDist): SdrUndoObj(rNewObj),m_aDistance(rDist) {} virtual ~SdrUndoMoveObj() override; virtual void Undo() override; diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index defe2b362f79..b711a5f4398a 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -521,12 +521,12 @@ void SdrUndoMoveObj::Undo() // Trigger PageChangeCall ImpShowPageOfThisObject(); - mxObj->Move(Size(-aDistance.Width(),-aDistance.Height())); + mxObj->Move(Size(-m_aDistance.Width(),-m_aDistance.Height())); } void SdrUndoMoveObj::Redo() { - mxObj->Move(Size(aDistance.Width(),aDistance.Height())); + mxObj->Move(Size(m_aDistance.Width(),m_aDistance.Height())); // Trigger PageChangeCall ImpShowPageOfThisObject(); @@ -539,7 +539,7 @@ OUString SdrUndoMoveObj::GetComment() const void SdrUndoMoveObj::SdrRepeat(SdrView& rView) { - rView.MoveMarkedObj(aDistance); + rView.MoveMarkedObj(m_aDistance); } bool SdrUndoMoveObj::CanSdrRepeat(SdrView& rView) const -- cgit