[network/libktorrent] src/util: Fix Array const begin and end functions

Jack Hill <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ee7a93597959eab24883c9e88b33226495ba9593 by Jack Hill.
Committed on 09/08/2026 at 13:42.
Pushed by jackh into branch 'master'.

Fix Array const begin and end functions

M  +2    -2    src/util/array.h

https://invent.kde.org/network/libktorrent/-/commit/ee7a93597959eab24883c9e88b33226495ba9593

diff --git a/src/util/array.h b/src/util/array.h
index 1b0f9124..f8aa84b1 100644
--- a/src/util/array.h
+++ b/src/util/array.h
@@ -104,11 +104,11 @@ public:
     }
     [[nodiscard]] const_iterator begin() const
     {
-        return begin();
+        return m_data.get();
     }
     [[nodiscard]] const_iterator end() const
     {
-        return end();
+        return begin() + size();
     }
 };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.