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

Method getIdFromUuid

YACReaderLibrary/yacreader_libraries.cpp:119–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int YACReaderLibraries::getIdFromUuid(const QUuid &uuid) const
120{
121 auto library = std::find_if(libraries.cbegin(), libraries.cend(), [uuid](const YACReaderLibrary &library) { return library.getId() == uuid; });
122 return library != libraries.cend() ? library->getLegacyId() : -1;
123}
124
125YACReaderLibraries &YACReaderLibraries::operator=(const YACReaderLibraries &source)
126{

Callers 1

serviceMethod · 0.80

Calls 2

getLegacyIdMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected