Fix method returning a reference to a temporary.

Found by cppcheck, via by Arthur Wong.
This commit is contained in:
Robin Sommer 2020-01-13 11:24:20 +00:00
parent 6218f99b96
commit ae9e79969e

View file

@ -139,7 +139,7 @@ ComponentManager<T, C>::ComponentManager(const string& arg_module, const string&
template <class T, class C>
const std::string& ComponentManager<T, C>::GetModule() const
{
return module.c_str();
return module;
}
template <class T, class C>