Commit 5560c9ff authored by patrick pereira's avatar patrick pereira 🏃
Browse files

plugincontroller: Use clang-format


Signed-off-by: patrick pereira's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 5d58fef9
...@@ -39,14 +39,14 @@ ...@@ -39,14 +39,14 @@
namespace Minuet namespace Minuet
{ {
PluginController::PluginController(QObject *parent) PluginController::PluginController(QObject *parent)
: IPluginController(parent) : IPluginController(parent)
{ {
#if !defined(Q_OS_ANDROID) #if !defined(Q_OS_ANDROID)
m_plugins = KPluginLoader::findPlugins(QStringLiteral("minuet"), [&](const KPluginMetaData &meta) { m_plugins = KPluginLoader::findPlugins(QStringLiteral("minuet"), [&](const KPluginMetaData &meta) {
if (!meta.serviceTypes().contains(QStringLiteral("Minuet/Plugin"))) { if (!meta.serviceTypes().contains(QStringLiteral("Minuet/Plugin"))) {
qWarning() << "Plugin" << meta.fileName() << "is installed into the minuet plugin directory, but does not have" qWarning() << "Plugin" << meta.fileName()
<< "is installed into the minuet plugin directory, but does not have"
" \"Minuet/Plugin\" set as the service type. This plugin will not be loaded."; " \"Minuet/Plugin\" set as the service type. This plugin will not be loaded.";
return false; return false;
} }
...@@ -68,8 +68,7 @@ bool PluginController::initialize(Core *core) ...@@ -68,8 +68,7 @@ bool PluginController::initialize(Core *core)
m_errorString.clear(); m_errorString.clear();
#if !defined(Q_OS_ANDROID) #if !defined(Q_OS_ANDROID)
ISoundController *soundController = 0; ISoundController *soundController = 0;
foreach (const KPluginMetaData &pluginMetaData, m_plugins) foreach (const KPluginMetaData &pluginMetaData, m_plugins) {
{
if (m_loadedPlugins.value(pluginMetaData)) if (m_loadedPlugins.value(pluginMetaData))
continue; continue;
...@@ -103,4 +102,3 @@ QString PluginController::errorString() const ...@@ -103,4 +102,3 @@ QString PluginController::errorString() const
} }
} }
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
namespace Minuet namespace Minuet
{ {
class Core; class Core;
class IPlugin; class IPlugin;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment