https://bugs.kde.org/show_bug.cgi?id=491703
--- Comment #18 from Aleix Pol <aleix...@kde.org> --- Git commit 4af14a328701f635ad86a8fbd9ca678c9c9a6110 by Aleix Pol. Committed on 26/01/2025 at 16:31. Pushed by apol into branch 'master'. Use std::shared_ptr to manage categories Categories get merged and destroyed normally which makes the code a bit fiddly. Let std::shared_ptr take care of the lifetime of such objects rather than doing it by ourselves. M +2 -0 discover/DiscoverDeclarativePlugin.cpp M +1 -1 discover/DiscoverObject.cpp M +2 -1 discover/DiscoverObject.h M +6 -4 discover/qml/DiscoverDrawer.qml M +4 -5 libdiscover/Category/CategoriesReader.cpp M +2 -2 libdiscover/Category/CategoriesReader.h M +38 -28 libdiscover/Category/Category.cpp M +27 -13 libdiscover/Category/Category.h M +17 -10 libdiscover/Category/CategoryModel.cpp M +6 -4 libdiscover/Category/CategoryModel.h M +2 -1 libdiscover/appstream/AppStreamUtils.cpp M +2 -1 libdiscover/appstream/AppStreamUtils.h M +9 -9 libdiscover/backends/AlpineApkBackend/AlpineApkBackend.cpp M +1 -1 libdiscover/backends/AlpineApkBackend/AlpineApkBackend.h M +25 -17 libdiscover/backends/KNSBackend/KNSBackend.cpp M +2 -2 libdiscover/backends/KNSBackend/KNSBackend.h M +7 -7 libdiscover/resources/AbstractResource.cpp M +3 -2 libdiscover/resources/AbstractResource.h M +1 -1 libdiscover/resources/AbstractResourcesBackend.cpp M +2 -2 libdiscover/resources/AbstractResourcesBackend.h M +5 -5 libdiscover/resources/ResourcesProxyModel.cpp M +3 -3 libdiscover/resources/ResourcesProxyModel.h M +5 -5 libdiscover/tests/CategoriesTest.cpp https://invent.kde.org/plasma/discover/-/commit/4af14a328701f635ad86a8fbd9ca678c9c9a6110 -- You are receiving this mail because: You are watching all bug changes.