Skip to content
Snippets Groups Projects
Commit adba10c3 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

allow overrides in environment variables

parent 1a7b9dd3
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ public:
throw exception::CommonException ( "Binded value of name " + name + " not found." );
}
 
bool setBinding ( std::string name, std::string value ) {
return m_bindings.insert ( std::make_pair ( std::move ( name ), std::move ( value ) ) ).second;
void setBinding ( std::string name, std::string value ) {
m_bindings [ std::move ( name ) ] = std::move ( value );
}
 
bool clearBinding ( const std::string & name ) {
......@@ -50,8 +50,8 @@ public:
throw exception::CommonException ( "Variable of name " + name + " not found." );
}
 
bool setVariable ( std::string name, std::shared_ptr < abstraction::OperationAbstraction > value ) {
return m_variables.insert ( std::make_pair ( std::move ( name ), std::move ( value ) ) ).second;
void setVariable ( std::string name, std::shared_ptr < abstraction::OperationAbstraction > value ) {
m_variables [ std::move ( name ) ] = std::move ( value );
}
 
bool clearVariable ( const std::string & name ) {
......
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