| 1002 | } |
| 1003 | |
| 1004 | PluginArray * CScriptsOfThread::GetAvailableScripts(const wchar_t *transformationEvent) |
| 1005 | { |
| 1006 | if (m_aPluginsByEvent.empty()) |
| 1007 | m_aPluginsByEvent = ::GetAvailableScripts(); |
| 1008 | if (auto it = m_aPluginsByEvent.find(transformationEvent); it != m_aPluginsByEvent.end()) |
| 1009 | return it->second.get(); |
| 1010 | // return a pointer to an empty list |
| 1011 | static PluginArray noPlugin; |
| 1012 | return &noPlugin; |
| 1013 | } |
| 1014 | |
| 1015 | void CScriptsOfThread::SaveSettings() |
| 1016 | { |
no test coverage detected