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

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

Fix Array const begin and end functions

(cherry picked from commit ee7a93597959eab24883c9e88b33226495ba9593)

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

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

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.