diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-18 07:54:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-18 12:11:33 +0000 |
commit | b495eb4dbaf9165414b2082572d96d14dbf38d1f (patch) | |
tree | 11287cca8fab4c0c047aad82509dce0dd4f68897 /sw/source/core/undo/SwUndoFmt.cxx | |
parent | 97e61ba58c357564d8fbffea94c8aa56636480b9 (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/source/core/undo/SwUndoFmt.cxx')
-rw-r--r-- | sw/source/core/undo/SwUndoFmt.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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() |