diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-10-18 17:22:02 +0900 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-20 07:56:44 +0200 |
commit | 44f54bf392375b789e3e3c3e868c9426d6cd4e41 (patch) | |
tree | 6b8f78a49f23cc4a53f9cb006c78ab61cc2eb767 | |
parent | c16804de78b1cf1ad906eaacbcc7c51d35218d8a (diff) |
svtools: SvTreeListEntry's copy ctor is unnecessary
Change-Id: Idce8773d96e30dacfc9ce13fdb9b399c2a8bf341
Reviewed-on: https://gerrit.libreoffice.org/43485
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | include/svtools/treelistentry.hxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/treelistentry.cxx | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/include/svtools/treelistentry.hxx b/include/svtools/treelistentry.hxx index 57a7056cdad7..899e3f8bbc96 100644 --- a/include/svtools/treelistentry.hxx +++ b/include/svtools/treelistentry.hxx @@ -70,13 +70,13 @@ private: void SetListPositions(); void InvalidateChildrensListPositions(); + SvTreeListEntry(const SvTreeListEntry& r) = delete; void operator=(SvTreeListEntry const&) = delete; public: static const size_t ITEM_NOT_FOUND = SAL_MAX_SIZE; SvTreeListEntry(); - SvTreeListEntry(const SvTreeListEntry& r); virtual ~SvTreeListEntry(); bool HasChildren() const; diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx index 72436e9f5fa6..aab1f37597c2 100644 --- a/svtools/source/contnr/treelistentry.cxx +++ b/svtools/source/contnr/treelistentry.cxx @@ -20,7 +20,6 @@ #include <memory> #include <svtools/treelistentry.hxx> #include <svtools/treelist.hxx> -#include <o3tl/make_unique.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -60,18 +59,6 @@ SvTreeListEntry::SvTreeListEntry() { } -SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r) - : pParent(nullptr) - , nAbsPos(r.nAbsPos) - , nListPos(r.nListPos & 0x7FFFFFFF) - , pUserData(r.pUserData) - , nEntryFlags(r.nEntryFlags) - , maBackColor(Application::GetSettings().GetStyleSettings().GetWindowColor()) -{ - for (auto const& it : r.m_Children) - m_Children.push_back(o3tl::make_unique<SvTreeListEntry>(*it)); -} - SvTreeListEntry::~SvTreeListEntry() { #ifdef DBG_UTIL |