summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-18 07:54:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-18 12:11:33 +0000
commitb495eb4dbaf9165414b2082572d96d14dbf38d1f (patch)
tree11287cca8fab4c0c047aad82509dce0dd4f68897 /sw
parent97e61ba58c357564d8fbffea94c8aa56636480b9 (diff)
loplugin:datamembershadow
Change-Id: I8a737a2f22c7be9630a1f7562b4309e687bb85f9 Reviewed-on: https://gerrit.libreoffice.org/30948 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/inc/SwUndoFmt.hxx2
-rw-r--r--sw/source/core/undo/SwUndoFmt.cxx5
2 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/inc/SwUndoFmt.hxx b/sw/source/core/inc/SwUndoFmt.hxx
index c034829ad4b7..ec25edb9bd49 100644
--- a/sw/source/core/inc/SwUndoFmt.hxx
+++ b/sw/source/core/inc/SwUndoFmt.hxx
@@ -178,8 +178,6 @@ public:
class SwUndoFrameFormatCreate : public SwUndoFormatCreate
{
- bool bAuto;
-
public:
SwUndoFrameFormatCreate(SwFrameFormat * pNew, SwFrameFormat * pDerivedFrom,
SwDoc * pDoc);
diff --git a/sw/source/core/undo/SwUndoFmt.cxx b/sw/source/core/undo/SwUndoFmt.cxx
index ffa0531f873f..5682cc04f8b9 100644
--- a/sw/source/core/undo/SwUndoFmt.cxx
+++ b/sw/source/core/undo/SwUndoFmt.cxx
@@ -323,14 +323,13 @@ SwFormat * SwUndoRenameCharFormat::Find(const OUString & rName) const
SwUndoFrameFormatCreate::SwUndoFrameFormatCreate(SwFrameFormat * pNewFormat,
SwFrameFormat * pDerivedFrom,
SwDoc * pDocument)
- : SwUndoFormatCreate(UNDO_FRMFMT_CREATE, pNewFormat, pDerivedFrom, pDocument),
- bAuto(pNewFormat->IsAuto())
+ : SwUndoFormatCreate(UNDO_FRMFMT_CREATE, pNewFormat, pDerivedFrom, pDocument)
{
}
SwFormat * SwUndoFrameFormatCreate::Create(SwFormat * pDerivedFrom)
{
- return pDoc->MakeFrameFormat(sNewName, static_cast<SwFrameFormat *>(pDerivedFrom), true, bAuto);
+ return pDoc->MakeFrameFormat(sNewName, static_cast<SwFrameFormat *>(pDerivedFrom), true, pNew->IsAuto());
}
void SwUndoFrameFormatCreate::Delete()