Skip to content
Snippets Groups Projects
Commit c0acb6b5 authored by Maxence Naud's avatar Maxence Naud
Browse files

No leaks in this version of CParameter

parent 8a63188d
No related branches found
No related tags found
1 merge request!15Remove CParameter memory leak
Pipeline #31157 failed
......@@ -52,7 +52,7 @@ public:
template<class T> T Get(std::string const i_ParamName) const
{
assert(m_Params.find(i_ParamName) != m_Params.end());
return std::any_cast<T>(m_Buffer[m_Params[i_ParamName]]);
return std::any_cast<T>(m_Buffer[m_Params.at(i_ParamName)]);
}
///\brief Add a parameter value, identified by its name
......@@ -70,7 +70,7 @@ public:
std::string getParamType(std::string const &i_ParamName){
return m_Buffer[m_Params[i_ParamName]].type().name();
return m_Buffer[m_Params.at(i_ParamName)].type().name();
}
std::vector<std::string> getParametersName(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment