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.
Join us at Akademy to celebrate KDE's 30th anniversary! Travel support requests are open till May 31st. Register now.
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.