summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/plugin-support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/plugin-support.cpp')
-rw-r--r--facetracknoir/plugin-support.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/facetracknoir/plugin-support.cpp b/facetracknoir/plugin-support.cpp
index e9154bb7..5b65df47 100644
--- a/facetracknoir/plugin-support.cpp
+++ b/facetracknoir/plugin-support.cpp
@@ -29,28 +29,27 @@ SelectedLibraries::SelectedLibraries(IDynamicLibraryProvider* mainApp) :
correct = false;
if (!mainApp)
return;
- CTOR_FUNPTR ptr;
- DynamicLibrary* lib;
+ CTOR_FUNPTR p;
- lib = mainApp->current_tracker1();
+ ptr<DynamicLibrary> lib = mainApp->current_tracker1();
if (lib && lib->Constructor) {
- ptr = (CTOR_FUNPTR) lib->Constructor;
- pTracker = (ITracker*) ptr();
+ p = (CTOR_FUNPTR) lib->Constructor;
+ pTracker = (ITracker*) p();
}
lib = mainApp->current_protocol();
if (lib && lib->Constructor) {
- ptr = (CTOR_FUNPTR) lib->Constructor;
- pProtocol = (IProtocol*) ptr();
+ p = (CTOR_FUNPTR) lib->Constructor;
+ pProtocol = (IProtocol*) p();
}
lib = mainApp->current_filter();
if (lib && lib->Constructor) {
- ptr = (CTOR_FUNPTR) lib->Constructor;
- pFilter = (IFilter*) ptr();
+ p = (CTOR_FUNPTR) lib->Constructor;
+ pFilter = (IFilter*) p();
}
if (pProtocol)