sc: fix -Werror,-Wdeprecated-copy
clang 15 warns: In file included from /home/vmiklos/git/libreoffice/co-25.04-clang/sc/source/ui/unoobj/datauno.cxx:46: In file included from /home/vmiklos/git/libreoffice/co-25.04-clang/sc/inc/rangeutl.hxx:24: /home/vmiklos/git/libreoffice/co-25.04-clang/sc/inc/dbdata.hxx:140:18: error: definition of implicit copy assignment operator for 'ScTableStyleParam' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy] SC_DLLPUBLIC ScTableStyleParam(const ScTableStyleParam& rParam) = default; ^ /home/vmiklos/git/libreoffice/co-25.04-clang/sc/source/ui/unoobj/datauno.cxx:1986:20: note: in implicit copy assignment operator for 'ScTableStyleParam' first required here aParam = *pOldParam; ^ 1 error generated. cherry-pick from: 2febcb044daf9f75b67c952182835dd6a0525fd3 Change-Id: If0e2c196d2ba8e421fb292aca3eb3486842c4801 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194146 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 6206e9f96551795e998a0687b784d92955ee1806) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196870 Reviewed-by: Michael Stahl <michael.stahl@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198348 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
This commit is contained in:
committed by
Balazs Varga
parent
50159dbedc
commit
3423b46c54
@@ -137,9 +137,7 @@ struct SAL_DLLPUBLIC_RTTI ScTableStyleParam
|
||||
bool mbLastColumn;
|
||||
|
||||
SC_DLLPUBLIC ScTableStyleParam();
|
||||
SC_DLLPUBLIC ScTableStyleParam(const ScTableStyleParam& rParam) = default;
|
||||
|
||||
ScTableStyleParam& operator=(const ScTableStyleParam&) = default;
|
||||
bool operator== (const ScTableStyleParam& rData) const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user