| 476 | } |
| 477 | |
| 478 | abstract_plugin* application::find_plugin(const string& name)const |
| 479 | { |
| 480 | auto itr = plugins.find(name); |
| 481 | if(itr == plugins.end()) { |
| 482 | return nullptr; |
| 483 | } |
| 484 | return itr->second.get(); |
| 485 | } |
| 486 | |
| 487 | abstract_plugin& application::get_plugin(const string& name)const { |
| 488 | auto ptr = find_plugin(name); |