Kaydet (Commit) 44f54bf3 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Julien Nabet

svtools: SvTreeListEntry's copy ctor is unnecessary

Change-Id: Idce8773d96e30dacfc9ce13fdb9b399c2a8bf341
Reviewed-on: https://gerrit.libreoffice.org/43485Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst c16804de
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment