From e6c81eb90be1f335010b747ef7af0a1358927215 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 25 Jun 2011 20:52:37 +0200 Subject: [PATCH] Factory: modify add_creator method --- src/factory_filter.cpp | 4 ++-- src/factory_filter.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/factory_filter.cpp b/src/factory_filter.cpp index a446ba2..c1cb0b7 100644 --- a/src/factory_filter.cpp +++ b/src/factory_filter.cpp @@ -66,8 +66,8 @@ mp::FactoryFilter::~FactoryFilter() } -bool mp::FactoryFilter::add_creator(std::string fi, - CreateFilterCallback cfc) +bool mp::FactoryFilter::add_creator(const std::string &fi, + CreateFilterCallback cfc) { return m_p->m_fcm.insert(Rep::CallbackMap::value_type(fi, cfc)).second; } diff --git a/src/factory_filter.hpp b/src/factory_filter.hpp index 4464c32..0fe162b 100644 --- a/src/factory_filter.hpp +++ b/src/factory_filter.hpp @@ -41,7 +41,7 @@ namespace metaproxy_1 { FactoryFilter(); ~FactoryFilter(); - bool add_creator(std::string fi, CreateFilterCallback cfc); + bool add_creator(const std::string &fi, CreateFilterCallback cfc); bool drop_creator(std::string fi); -- 1.7.10.4