diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-20 18:33:54 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-20 18:33:54 +0100 |
| commit | 946d7fc192d47b542e048d9ec72e65ad982eb09c (patch) | |
| tree | c4de9dafa6ee1f95194a1671886c4d95243b4a60 /src | |
| parent | 58b6e0eb48b4d4b201613f1062796a9af68fe454 (diff) | |
Add comment for m_NumRegularMods and remove unused methods.
Diffstat (limited to 'src')
| -rw-r--r-- | src/profile.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/profile.h b/src/profile.h index ebb69c0e..903a8553 100644 --- a/src/profile.h +++ b/src/profile.h @@ -343,6 +343,9 @@ public: void debugDump() const; + + Profile& operator=(const Profile& reference) = delete; + signals: /** @@ -376,9 +379,6 @@ private: }; private: - Profile& operator=(const Profile &reference); // not implemented - - void initTimer(); void updateIndices(); @@ -388,7 +388,6 @@ private: void mergeTweak(const QString &tweakName, const QString &tweakedIni) const; void mergeTweaks(ModInfo::Ptr modInfo, const QString &tweakedIni) const; void touchFile(QString fileName); - void finishChangeStatus() const; static void renameModInList(QFile &modList, const QString &oldName, const QString &newName); @@ -400,11 +399,14 @@ private: const MOBase::IPluginGame *m_GamePlugin; - mutable QByteArray m_LastModlistHash; std::vector<ModStatus> m_ModStatus; std::map<int, unsigned int> m_ModIndexByPriority; - unsigned int m_NumRegularMods; + // "regular" here means mods with modifiable priority (i.e. not backups + // or overwrite) + std::size_t m_NumRegularMods; + + mutable QByteArray m_LastModlistHash; MOBase::DelayedFileWriter m_ModListWriter; }; |
