Prevent creating a shared pointer from this in
destructor, which would lead to recursively
calling the descructor.
m_root->catalogRefreshComplete(this, aReason);
}
-void Catalog::registerInstall(InstallRef ins)
+void Catalog::registerInstall(Install* ins)
{
if (!ins || ins->package()->catalog() != this) {
return;
m_installed[ins->package()] = ins;
}
-void Catalog::unregisterInstall(InstallRef ins)
+void Catalog::unregisterInstall(Install* ins)
{
if (!ins || ins->package()->catalog() != this) {
return;
friend class Downloader;
friend class Install;
- void registerInstall(InstallRef ins);
- void unregisterInstall(InstallRef ins);
+ void registerInstall(Install* ins);
+ void unregisterInstall(Install* ins);
void parseProps(const SGPropertyNode* aProps);