------------------------------------------------------------- Description: Unregisters a variable with the given name in this store. Arguments: name - Name of the variable to unregister. Return Value: true If the variable was found. false Otherwise. -------------------------------------------------------------
| 266 | // false Otherwise. |
| 267 | // ------------------------------------------------------------- |
| 268 | bool Tr2VariableStore::UnregisterLocalVariable( const char* name ) |
| 269 | { |
| 270 | if( !name ) |
| 271 | { |
| 272 | return false; |
| 273 | } |
| 274 | auto it = m_variableMap.find( name ); |
| 275 | if( it != m_variableMap.end() ) |
| 276 | { |
| 277 | it->second->Invalidate(); |
| 278 | m_variableMap.erase( it ); |
| 279 | return true; |
| 280 | } |
| 281 | return false; |
| 282 | } |
| 283 | |
| 284 | // ------------------------------------------------------------- |
| 285 | // Description: |
no test coverage detected