summaryrefslogtreecommitdiff
path: root/src/modinfo.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-28 14:53:32 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-28 14:53:32 +0000
commit9e2bcffc32157b99a2d7364b869a4423ba827a32 (patch)
tree0983cb8b1b915c016d39b9e2632562fcc813b40b /src/modinfo.cpp
parentca54ee2e9a8f1d49d81d5c3b66a860b9b16992d6 (diff)
Reworked startup considerably so now no longer dependant on GameInfo
Did some const correctness to the "managed_game" property as you shouldn't really be altering the plugin details whilst MO is running
Diffstat (limited to 'src/modinfo.cpp')
-rw-r--r--src/modinfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index ef195bea..03ab9a95 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -290,7 +290,7 @@ int ModInfo::checkAllForUpdate(QObject *receiver)
std::vector<int> modIDs;
//I ought to store this, it's used elsewhere
- IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
+ IPluginGame const *game = qApp->property("managed_game").value<IPluginGame const *>();
modIDs.push_back(game->getNexusModOrganizerID());
@@ -935,7 +935,7 @@ std::vector<ModInfo::EContent> ModInfoRegular::getContents() const
m_CachedContent.push_back(CONTENT_BSA);
}
- ScriptExtender *extender = qApp->property("managed_game").value<IPluginGame*>()->feature<ScriptExtender>();
+ ScriptExtender *extender = qApp->property("managed_game").value<IPluginGame const *>()->feature<ScriptExtender>();
if (extender != nullptr) {
QString sePluginPath = extender->name() + "/plugins";
@@ -1137,7 +1137,7 @@ QDateTime ModInfoForeign::creationTime() const
QString ModInfoForeign::absolutePath() const
{
//I ought to store this, it's used elsewhere
- IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
+ IPluginGame const *game = qApp->property("managed_game").value<IPluginGame const *>();
return game->dataDirectory().absolutePath();
}