Skip to content
Snippets Groups Projects
Commit fe56b332 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: fix bug in DocStrucutre when no example parameter is given

parent 433aec1f
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,6 @@ namespace Wrapper
DocExampleStructure::DocExampleStructure() : m_ParameterList(), m_ApplicationName(""), m_ExampleCommentList(), m_NbOfExamples(1)
{
m_ExampleCommentList.push_back("");
m_ParameterList.push_back(ParametersVectorType());
}
DocExampleStructure::~DocExampleStructure()
......@@ -39,8 +38,14 @@ DocExampleStructure::~DocExampleStructure()
void
DocExampleStructure::AddParameter( const std::string key, const std::string value, unsigned int exId)
{
if( m_ParameterList.size() < exId+1 )
{
while( m_ParameterList.size()<exId+1)
{
m_ParameterList.push_back(ParametersVectorType());
}
}
m_ParameterList.at(exId).push_back(std::make_pair(key, value));
}
......
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