diff options
Diffstat (limited to 'src/libserver/symcache/symcache_item.hxx')
-rw-r--r-- | src/libserver/symcache/symcache_item.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/symcache/symcache_item.hxx b/src/libserver/symcache/symcache_item.hxx index c159e7c47..a60213a61 100644 --- a/src/libserver/symcache/symcache_item.hxx +++ b/src/libserver/symcache/symcache_item.hxx @@ -483,15 +483,15 @@ public: * @param ptr * @return */ - auto get_children() const -> std::optional<std::reference_wrapper<const std::vector<cache_item *>>> + auto get_children() const -> const std::vector<cache_item *> * { if (std::holds_alternative<normal_item>(specific)) { const auto &filter_data = std::get<normal_item>(specific); - return std::cref(filter_data.get_childen()); + return &filter_data.get_childen(); } - return std::nullopt; + return nullptr; } private: |