diff options
author | Eike Rathke <erack@redhat.com> | 2018-09-20 18:12:03 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-09-20 22:00:14 +0200 |
commit | 7ea5d339dc4d8412f436f3affa589bfbd0b1ef68 (patch) | |
tree | 8ec83ffb61f9f5309300949280f2d96e6e2dcf7a /sc/inc/dbdata.hxx | |
parent | 4cc71fef5a4fd05b2ee2953dd8a297ffffff29a0 (diff) |
Resolves: tdf#119954 do not copy the old parent, init with new parent instead
The parent is always the ScDBCollection that contains the
ScDBCollection::NamedDBs container, not the one the
ScDBCollection::NamedDBs was copy-constructed from.
Change-Id: Ia409347f3aeb9ad7a5e68da7af727adfac98d6a2
Reviewed-on: https://gerrit.libreoffice.org/60833
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc/dbdata.hxx')
-rw-r--r-- | sc/inc/dbdata.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index 4523bb64c206..ab0cf85b9cb4 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -240,7 +240,8 @@ public: DBsType m_DBs; ScDBCollection& mrParent; NamedDBs(ScDBCollection& rParent, ScDocument& rDoc); - NamedDBs(const NamedDBs& r); + NamedDBs(const NamedDBs& r, ScDBCollection& rParent); + NamedDBs(const NamedDBs&) = delete; virtual ~NamedDBs() override; NamedDBs & operator=(NamedDBs const&) = delete; void initInserted( ScDBData* p ); |