diff options
Diffstat (limited to 'cpp/src/qpid/Plugin.cpp')
-rw-r--r-- | cpp/src/qpid/Plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/Plugin.cpp b/cpp/src/qpid/Plugin.cpp index 84dc5a0107..449eaf937d 100644 --- a/cpp/src/qpid/Plugin.cpp +++ b/cpp/src/qpid/Plugin.cpp @@ -61,8 +61,8 @@ const std::vector<Plugin::Factory*>& Plugin::Factory::getList() { void Plugin::Factory::addOptions(Options& opts) { typedef std::vector<Plugin::Factory*>::const_iterator Iter; for (Iter i = Factory::getList().begin(); i != Factory::getList().end(); ++i) { - if ((**i).getOptions()) - opts.add(*(**i).getOptions()); + Options* opt=(**i).getOptions(); + if (opt) opts.add(*opt); } } |