We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929ba52 commit 1ed6af2Copy full SHA for 1ed6af2
1 file changed
src/Store/Store.h
@@ -61,13 +61,15 @@ namespace ToolFramework{
61
*/
62
template<typename T> bool Get(std::string name,std::vector<T> &out){
63
64
- if(m_variables.count(name)>0 && StringStrip(m_variables[name])[0]=='['){
+ std::string stripped = StringStrip(m_variables[name]);
65
+
66
+ if(m_variables.count(name)>0 && stripped[0]=='['){
67
std::stringstream stream;
68
out.clear();
69
- for(unsigned int i=1; i<m_variables[name].length(); i++){
- if(m_variables[name][i]!=',' && m_variables[name][i]!=']'){
70
- if(m_variables[name][i]!='"') stream.put(m_variables[name][i]);
+ for(unsigned int i=1; i<stripped.length(); i++){
71
+ if(stripped[i]!=',' && stripped[i]!=']'){
72
+ if(stripped[i]!='"') stream.put(stripped[i]);
73
}
74
else {
75
T tmp;
0 commit comments