* @brief Returns the backend registered under @p key, or nullptr when none matches. */
| 43 | * @brief Returns the backend registered under @p key, or nullptr when none matches. |
| 44 | */ |
| 45 | const IO::Drivers::CanBackends::Entry* IO::Drivers::CanBackends::find(const QString& key) |
| 46 | { |
| 47 | for (const Entry& entry : all()) |
| 48 | if (entry.key == key) |
| 49 | return &entry; |
| 50 | |
| 51 | return nullptr; |
| 52 | } |
no outgoing calls