diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-09-30 23:58:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-28 08:33:08 +0200 |
commit | 165d0a149d631d96a91118dfc7686bd2ebb0b6b9 (patch) | |
tree | 67881f3106c0eb411194b616bacc3c27cbbbb9cc /include/svl/cenumitm.hxx | |
parent | Work around "xargs: environment is too large for exec" errors on Windows (diff) | |
download | core-165d0a149d631d96a91118dfc7686bd2ebb0b6b9.tar.gz core-165d0a149d631d96a91118dfc7686bd2ebb0b6b9.zip |
clang-tidy modernize-use-equals-default in svl
SfxPoolItem has a copy constructor and its copy assignment
operator is deleted. Derived classes have a implicit defined
copy constructor too, if all members are copy constructible.
This patch removes default able copy constructors on such items.
Note: clang-tidy only finds functions defined in source, inlined
functions in headers are picked manualy.
Change-Id: I7e642a2ecf139420c53f6fcb39208918dd1a8d52
Reviewed-on: https://gerrit.libreoffice.org/43003
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/cenumitm.hxx')
-rw-r--r-- | include/svl/cenumitm.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/svl/cenumitm.hxx b/include/svl/cenumitm.hxx index 1857be8cc886..92a537cb390a 100644 --- a/include/svl/cenumitm.hxx +++ b/include/svl/cenumitm.hxx @@ -28,8 +28,7 @@ class SVL_DLLPUBLIC SfxEnumItemInterface: public SfxPoolItem protected: explicit SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {} - SfxEnumItemInterface(const SfxEnumItemInterface & rItem): - SfxPoolItem(rItem) {} + SfxEnumItemInterface(const SfxEnumItemInterface &) = default; public: |