From a49472349d87604c7ad2b1f90234135b47c8bf10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Oct 2020 23:28:38 +0200 Subject: [PATCH] NOISSUE fix constructing Path from iterators Old Qt doesn't have the iterator-based constructors... --- api/logic/mojang/PackageManifest.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/logic/mojang/PackageManifest.h b/api/logic/mojang/PackageManifest.h index 893d4c50..d01a0554 100644 --- a/api/logic/mojang/PackageManifest.h +++ b/api/logic/mojang/PackageManifest.h @@ -87,7 +87,11 @@ public: private: Path(const parts_type::const_iterator & start, const parts_type::const_iterator & end) { - parts = QStringList(start, end); + auto cursor = start; + while(cursor != end) { + parts.push_back(*cursor); + cursor++; + } } int compare(const Path& p) const;