MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / findVersion

Method findVersion

launcher/BaseVersionList.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39BaseVersionList::BaseVersionList(QObject* parent) : QAbstractListModel(parent) {}
40
41BaseVersion::Ptr BaseVersionList::findVersion(const QString& descriptor)
42{
43 for (int i = 0; i < count(); i++) {
44 if (at(i)->descriptor() == descriptor)
45 return at(i);
46 }
47 return nullptr;
48}
49
50BaseVersion::Ptr BaseVersionList::getRecommended() const
51{

Callers

nothing calls this directly

Calls 1

descriptorMethod · 0.45

Tested by

no test coverage detected