fix compile

This commit is contained in:
GenevensiS
2026-05-15 18:23:27 +02:00
parent 754ca3bccf
commit 2f77e8c4c1
+4 -5
View File
@@ -16,12 +16,14 @@
/// A list of installed and downloadable packages /// A list of installed and downloadable packages
class PackageUpdateList : public TreeList { class PackageUpdateList : public TreeList {
private:
class TreeItem;
public: public:
typedef intrusive_ptr<TreeItem> TreeItemP;
PackageUpdateList(Window* parent, const InstallablePackages& packages, bool show_only_installable, int id = wxID_ANY); PackageUpdateList(Window* parent, const InstallablePackages& packages, bool show_only_installable, int id = wxID_ANY);
~PackageUpdateList(); ~PackageUpdateList();
class TreeItem;
inline InstallablePackageP getSelectedPackage() const { inline InstallablePackageP getSelectedPackage() const {
TreeItem* ti = getSelectedItem(); TreeItem* ti = getSelectedItem();
return ti ? ti->package : InstallablePackageP(); return ti ? ti->package : InstallablePackageP();
@@ -96,9 +98,6 @@ private:
/// Show only packages with an installer? /// Show only packages with an installer?
bool show_only_installable; bool show_only_installable;
public:
typedef intrusive_ptr<TreeItem> TreeItemP;
private:
class TreeItem : public Item { class TreeItem : public Item {
public: public:
TreeItem() : position_type(TYPE_OTHER), position_hint(1000000) {} TreeItem() : position_type(TYPE_OTHER), position_hint(1000000) {}