diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-01-20 19:27:47 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-04 03:33:20 -0500 |
| commit | f49643075ac4a0bac1f4d1983398b8f19297b2f4 (patch) | |
| tree | 44eef2967025d989288c076a4071dee5e6ed5280 /src/filetreeitem.h | |
| parent | 7c4d3c6fb958d61e8d74fac982907f48831c7f7e (diff) | |
moved a bunch of duplicate stuff in a new class Range
Diffstat (limited to 'src/filetreeitem.h')
| -rw-r--r-- | src/filetreeitem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filetreeitem.h b/src/filetreeitem.h index e060f63a..2677d590 100644 --- a/src/filetreeitem.h +++ b/src/filetreeitem.h @@ -7,6 +7,8 @@ class FileTreeItem { public: + using Children = std::vector<std::unique_ptr<FileTreeItem>>; + enum Flag { NoFlags = 0x00, @@ -55,7 +57,7 @@ public: m_loaded = false; } - const std::vector<std::unique_ptr<FileTreeItem>>& children() const + const Children& children() const { return m_children; } @@ -211,7 +213,7 @@ private: bool m_loaded; bool m_expanded; - std::vector<std::unique_ptr<FileTreeItem>> m_children; + Children m_children; }; #endif // MODORGANIZER_FILETREEITEM_INCLUDED |
