File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Framework/Core/include/Framework Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,16 +168,18 @@ struct PlaceholderNode : LiteralNode {
168168 template <typename T>
169169 PlaceholderNode (T defaultValue, std::string&& path)
170170 : LiteralNode{defaultValue},
171- name{path}
171+ stored_name{path},
172+ name{stored_name}
172173 {
173174 retrieve = [](InitContext& context, char const * name) { return LiteralNode::var_t {context.options ().get <T>(name)}; };
174175 }
175176
176177 void reset (InitContext& context)
177178 {
178- value = retrieve (context, name.data ());
179+ value = retrieve (context, stored_name. empty () ? name. data () : stored_name .data ());
179180 }
180181
182+ std::string stored_name;
181183 std::string const & name;
182184 LiteralNode::var_t (*retrieve)(InitContext&, char const *);
183185};
You can’t perform that action at this time.
0 commit comments