summaryrefslogtreecommitdiff
path: root/project2/basics/preload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/basics/preload.cpp')
-rw-r--r--project2/basics/preload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/basics/preload.cpp b/project2/basics/preload.cpp
index e8aa6e9..b701d8d 100644
--- a/project2/basics/preload.cpp
+++ b/project2/basics/preload.cpp
@@ -16,7 +16,7 @@ class Preload {
static void LoadLibrary(const VariableType & librarypath)
{
- const auto beforeOpts = *Plugable::ComponentType<Options>::components();
+ const auto beforeOpts = InstanceSet<Options>::GetAll();
void * handle = dlopen(librarypath, RTLD_NOW);
if (handle) {
@@ -28,8 +28,8 @@ class Preload {
}
libs[librarypath.as<std::string>()] = boost::shared_ptr<void>(handle, &dlclose);
- const auto afterOpts = Plugable::ComponentType<Options>::components();
- BOOST_FOREACH(const auto & opt, *afterOpts) {
+ const auto afterOpts = InstanceSet<Options>::GetAll();
+ BOOST_FOREACH(const auto & opt, afterOpts) {
if (std::find(beforeOpts.begin(), beforeOpts.end(), opt) == beforeOpts.end()) {
opt->reset();
}