Skip to content
Snippets Groups Projects
Commit 7f086971 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: change list to vector

parent d7978966
Branches
Tags
No related merge requests found
......@@ -144,10 +144,10 @@ ChoiceParameter::GetAnyValue()
/** Return any value */
std::list<std::string>
std::vector<std::string>
ChoiceParameter::GetParametersKeys()
{
std::list<std::string> parameters;
std::vector<std::string> parameters;
ChoiceList::iterator cit = m_ChoiceList.begin();
......@@ -155,8 +155,8 @@ ChoiceParameter::GetParametersKeys()
{
if (cit->m_AssociatedParameter)
{
std::list<std::string> subparams = cit->m_AssociatedParameter->GetParametersKeys();
for (std::list<std::string>::const_iterator it = subparams.begin();
std::vector<std::string> subparams = cit->m_AssociatedParameter->GetParametersKeys();
for (std::vector<std::string>::const_iterator it = subparams.begin();
it != subparams.end(); ++it)
{
parameters.push_back( cit->m_Key + "." + *it );
......
......@@ -63,7 +63,7 @@ public:
/** Get the ParameterGroup associated to a choice value */
ParameterGroup::Pointer GetChoiceParameterGroupByKey( std::string choiceKey );
std::list<std::string> GetParametersKeys();
std::vector<std::string> GetParametersKeys();
/** Get the number of available choice */
unsigned int GetNbChoices( void );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment