| 141 | } |
| 142 | |
| 143 | QUuid YACReaderLibraries::getLibraryIdFromLegacyId(int legacyId) const |
| 144 | { |
| 145 | auto library = std::find_if(libraries.cbegin(), libraries.cend(), [legacyId](const YACReaderLibrary &library) { return library.getLegacyId() == legacyId; }); |
| 146 | return library != libraries.cend() ? library->getId() : QUuid(); |
| 147 | } |
| 148 | |
| 149 | void YACReaderLibraries::addLibrary(const QString &name, const QString &path) |
| 150 | { |
no test coverage detected