aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-08-19 08:46:19 +0000
committerMax Horn2010-08-19 08:46:19 +0000
commitf27b984fecf30d647b61b4e867945ecd1e056027 (patch)
tree8fb45eaeb1c33aabe2159a71226a3291f4356471
parent8f7de9974f859ffa4841be015340af667e604168 (diff)
downloadscummvm-rg350-f27b984fecf30d647b61b4e867945ecd1e056027.tar.gz
scummvm-rg350-f27b984fecf30d647b61b4e867945ecd1e056027.tar.bz2
scummvm-rg350-f27b984fecf30d647b61b4e867945ecd1e056027.zip
Fix warning & code formatting
svn-id: r52202
-rw-r--r--base/plugins.cpp3
-rw-r--r--base/plugins.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index fc5f1f4046..c0ff6f6dfa 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -342,7 +342,8 @@ void PluginManager::loadFirstPlugin() { //TODO: rename? It's not quite clear tha
}
bool PluginManager::loadNextPlugin() {
- if (_nonEnginePlugs == _allPlugs.size()) return false; //There are no Engine Plugins in this case.
+ if (_nonEnginePlugs == _allPlugs.size())
+ return false; //There are no Engine Plugins in this case.
//To ensure only one engine plugin is loaded at a time, we unload all engine plugins before trying to load a new one.
unloadPluginsExcept(PLUGIN_TYPE_ENGINE, NULL);
++_currentPlugin;
diff --git a/base/plugins.h b/base/plugins.h
index 717e18a4a7..84b1af5599 100644
--- a/base/plugins.h
+++ b/base/plugins.h
@@ -291,7 +291,7 @@ private:
bool _skipStaticPlugs;
- int _nonEnginePlugs;
+ uint _nonEnginePlugs;
bool tryLoadPlugin(Plugin *plugin);