aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/dc/dc-provider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/plugins/dc/dc-provider.cpp')
-rw-r--r--backends/plugins/dc/dc-provider.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/backends/plugins/dc/dc-provider.cpp b/backends/plugins/dc/dc-provider.cpp
index db0242f7d8..00471b790d 100644
--- a/backends/plugins/dc/dc-provider.cpp
+++ b/backends/plugins/dc/dc-provider.cpp
@@ -44,7 +44,7 @@ protected:
void *func = dlsym(_dlHandle, symbol);
if (!func)
warning("Failed loading symbol '%s' from plugin '%s' (%s)", symbol, _filename.c_str(), dlerror());
-
+
// FIXME HACK: This is a HACK to circumvent a clash between the ISO C++
// standard and POSIX: ISO C++ disallows casting between function pointers
// and data pointers, but dlsym always returns a void pointer. For details,
@@ -62,14 +62,14 @@ public:
bool loadPlugin() {
assert(!_dlHandle);
_dlHandle = dlopen(_filename.c_str(), RTLD_LAZY);
-
+
if (!_dlHandle) {
warning("Failed loading plugin '%s' (%s)", _filename.c_str(), dlerror());
return false;
}
-
+
bool ret = DynamicPlugin::loadPlugin();
-
+
if (ret)
dlforgetsyms(_dlHandle);
@@ -93,8 +93,8 @@ DCPluginProvider::~DCPluginProvider() {
PluginList DCPluginProvider::getPlugins() {
PluginList pl;
-
-
+
+
// Load dynamic plugins
// TODO... this is right now just a nasty hack.
// This should search one or multiple directories for all plugins it can
@@ -124,8 +124,8 @@ PluginList DCPluginProvider::getPlugins() {
pl.push_back(new DCPlugin(i->getPath()));
}
}
-
-
+
+
return pl;
}