diff options
author | Katja Marttila <katja.marttila@qt.io> | 2022-04-29 09:38:07 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2022-05-02 15:29:34 +0300 |
commit | d3dbae7cc82d1cb9cc45d9ca82fdd02f433e16a3 (patch) | |
tree | 2fcae5b8e25ac12dd8b20fb10f1698cdffd9d754 /src/libs/installer/uninstallercalculator.h | |
parent | e77e3841bcecf2046bd6937b2ee97a07ea771b54 (diff) |
Add documentation for typedefs AutoDependencyHash and DependencyHash
Also use the typedefs in the code when possible.
Change-Id: Ie5aa55997051afc864de87d58a10db1c33312ff2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/uninstallercalculator.h')
-rw-r--r-- | src/libs/installer/uninstallercalculator.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libs/installer/uninstallercalculator.h b/src/libs/installer/uninstallercalculator.h index 8bb9eb814..a458daa80 100644 --- a/src/libs/installer/uninstallercalculator.h +++ b/src/libs/installer/uninstallercalculator.h @@ -29,6 +29,7 @@ #define UNINSTALLERCALCULATOR_H #include "installer_global.h" +#include "qinstallerglobal.h" #include <QHash> #include <QList> @@ -53,8 +54,8 @@ public: }; UninstallerCalculator(const QList<Component *> &installedComponents, PackageManagerCore *core, - const QHash<QString, QStringList> &autoDependencyComponentHash, - const QHash<QString, QStringList> &dependencyComponentHash, + const AutoDependencyHash &autoDependencyComponentHash, + const DependencyHash &dependencyComponentHash, const QStringList &localVirtualComponents); QSet<Component*> componentsToUninstall() const; @@ -76,8 +77,8 @@ private: QSet<Component *> m_componentsToUninstall; PackageManagerCore *m_core; QHash<QString, QPair<UninstallReasonType, QString> > m_toUninstallComponentIdReasonHash; - QHash<QString, QStringList> m_autoDependencyComponentHash; - QHash<QString, QStringList> m_dependencyComponentHash; + AutoDependencyHash m_autoDependencyComponentHash; + DependencyHash m_dependencyComponentHash; QStringList m_localVirtualComponents; QList<Component *> m_virtualComponentsForReverse; }; |