summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-17 22:14:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-18 07:32:41 +0200
commit2f6bd6799c0b43afa6e01925456054082c6968be (patch)
tree414b2c3e6e5532888fb1c6ded039fcd83b093885 /include/comphelper
parente2a525b00c9ea15408fb64dcb6749405739f58ab (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.hxx5
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;