MCPcopy Create free account
hub / github.com/YACReader/yacreader / getLibraryIdFromLegacyId

Method getLibraryIdFromLegacyId

YACReaderLibrary/yacreader_libraries.cpp:143–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143QUuid 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
149void YACReaderLibraries::addLibrary(const QString &name, const QString &path)
150{

Callers 10

serviceContentMethod · 0.80
serviceContentMethod · 0.80
serviceContentMethod · 0.80
serviceContentMethod · 0.80
serviceContentMethod · 0.80
serviceMethod · 0.80
serviceContentMethod · 0.80
serviceMethod · 0.80
serviceContentMethod · 0.80
serviceMethod · 0.80

Calls 2

getLegacyIdMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected