replace all internal use of getChannelProviderRegistry()

This commit is contained in:
Michael Davidsaver
2017-06-28 13:48:02 +02:00
parent 3d5696b644
commit 749e8d71d1
11 changed files with 14 additions and 14 deletions

View File

@@ -175,7 +175,7 @@ struct CompatRegistry : public ChannelProviderRegistry
virtual bool add(const ChannelProviderFactory::shared_pointer& fact, bool replace=true) OVERRIDE FINAL
{
std::cerr<<"Warning: Adding provider \""<<fact->getFactoryName()<<"\" to compatibility ChannelProviderFactory is deprecated\n"
<<" Instead explicitly add to ChannelProviderFactory::clients() or ChannelProviderFactory::servers()\n";
<<" Instead explicitly add to ChannelProviderRegistry::clients() or ChannelProviderRegistry::servers()\n";
// intentionally not using short-circuit or
return clients()->add(fact, replace) | servers()->add(fact, replace);
}