Skip to content

Commit

Permalink
Pass python object by reference to const rather than value. Refs #970
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Apr 18, 2013
1 parent ee60134 commit f4ca9d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace
* @param obj :: A Python object that should either be a class type derived from IFunction
* or an instance of a class type derived from IFunction
*/
void subscribe(FunctionFactoryImpl & self, boost::python::object obj)
void subscribe(FunctionFactoryImpl & self, const boost::python::object & obj )
{
Poco::ScopedLock<Poco::Mutex> lock(FUNCTION_REGISTER_MUTEX);

Expand Down

0 comments on commit f4ca9d7

Please sign in to comment.