| 98 | } |
| 99 | |
| 100 | void YACReaderLibraries::rename(const QString &oldName, const QString &newName) |
| 101 | { |
| 102 | auto library = std::find_if(libraries.begin(), libraries.end(), [oldName](const YACReaderLibrary &library) { return library.getName() == oldName; }); |
| 103 | libraries.erase(library); |
| 104 | libraries.append(YACReaderLibrary(newName, library->getPath(), library->getLegacyId(), library->getId())); |
| 105 | } |
| 106 | |
| 107 | int YACReaderLibraries::getId(const QString &name) const |
| 108 | { |
nothing calls this directly
no test coverage detected