diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-10 09:29:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 08:19:00 +0200 |
commit | 27463197176fd7f68cbdeed790621dad6b4c63d3 (patch) | |
tree | c9fe64f7b6d5e30e05f4ff18b5fdf71a05a4ab0a /svx/source | |
parent | b40e57f403b3d4ccb90f3b76caf8d537b61826dc (diff) |
clang-tidy bugprone-copy-constructor-init
Change-Id: Idd435b3a4d081f6d3af26ff8add69ad4af50db57
warning: calling a base constructor other than the copy constructor
Reviewed-on: https://gerrit.libreoffice.org/60239
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/items/clipfmtitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/viewlayoutitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr2.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/items/clipfmtitem.cxx b/svx/source/items/clipfmtitem.cxx index c7c0f4968a6e..0a6df479f980 100644 --- a/svx/source/items/clipfmtitem.cxx +++ b/svx/source/items/clipfmtitem.cxx @@ -40,7 +40,7 @@ SvxClipboardFormatItem::SvxClipboardFormatItem( sal_uInt16 nId ) } SvxClipboardFormatItem::SvxClipboardFormatItem( const SvxClipboardFormatItem& rCpy ) - : SfxPoolItem( rCpy.Which() ), + : SfxPoolItem( rCpy ), pImpl( new SvxClipboardFormatItem_Impl( *rCpy.pImpl ) ) { } diff --git a/svx/source/items/viewlayoutitem.cxx b/svx/source/items/viewlayoutitem.cxx index 95f749d9bcb2..6578a1cea898 100644 --- a/svx/source/items/viewlayoutitem.cxx +++ b/svx/source/items/viewlayoutitem.cxx @@ -46,7 +46,7 @@ SvxViewLayoutItem::SvxViewLayoutItem SvxViewLayoutItem::SvxViewLayoutItem( const SvxViewLayoutItem& rOrig ) -: SfxUInt16Item( rOrig.Which(), rOrig.GetValue() ), +: SfxUInt16Item( rOrig ), mbBookMode( rOrig.IsBookMode() ) { } diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx index 0dd56a73f7fc..c8dc42be2a1c 100644 --- a/svx/source/xoutdev/xattr2.cxx +++ b/svx/source/xoutdev/xattr2.cxx @@ -178,7 +178,7 @@ AffineMatrixItem::AffineMatrixItem(const css::geometry::AffineMatrix2D* pMatrix) } AffineMatrixItem::AffineMatrixItem(const AffineMatrixItem& rRef) -: SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX) +: SfxPoolItem(rRef) { maMatrix = rRef.maMatrix; } |