diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-09-17 22:14:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-09-18 07:32:41 +0200 |
commit | 2f6bd6799c0b43afa6e01925456054082c6968be (patch) | |
tree | 414b2c3e6e5532888fb1c6ded039fcd83b093885 /include/comphelper | |
parent | e2a525b00c9ea15408fb64dcb6749405739f58ab (diff) |
-Werror=deprecated-copy (GCC trunk towards GCC 9)
...after 27463197176fd7f68cbdeed790621dad6b4c63d3 "clang-tidy bugprone-copy-
constructor-init" made e.g. the SfxStyleSheetBase copy ctor (in
svl/source/items/style.cxx) use the copy instead of the default ctor for its
OWeakTypeObject sub-object
Change-Id: I7deec4ea2f968587ba1dc03e33206cecfa3f8df5
Reviewed-on: https://gerrit.libreoffice.org/60644
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/weak.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/comphelper/weak.hxx b/include/comphelper/weak.hxx index 1a9c99f2324d..929ecbf495ca 100644 --- a/include/comphelper/weak.hxx +++ b/include/comphelper/weak.hxx @@ -40,6 +40,11 @@ public: OWeakTypeObject(); virtual ~OWeakTypeObject() override; + OWeakTypeObject(OWeakTypeObject const &) = default; + OWeakTypeObject(OWeakTypeObject &&) = default; + OWeakTypeObject & operator =(OWeakTypeObject const &) = default; + OWeakTypeObject & operator =(OWeakTypeObject &&) = default; + virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() throw () override; virtual void SAL_CALL release() throw () override; |