MCPcopy Create free account
hub / github.com/KDE/kdevelop / findModel

Method findModel

kdevplatform/shell/problemmodelset.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41ProblemModel* ProblemModelSet::findModel(const QString &id) const
42{
43 Q_D(const ProblemModelSet);
44
45 auto it = std::find_if(d->data.constBegin(), d->data.constEnd(), [&](const ModelData& data) {
46 return (data.id == id);
47 });
48
49 return (it != d->data.constEnd()) ? it->model : nullptr;
50}
51
52void ProblemModelSet::removeModel(const QString &id)
53{

Callers 4

testFindModelMethod · 0.80
testRemoveModelMethod · 0.80
testAddRemoveProblemsMethod · 0.80
testSetProblemsMethod · 0.80

Calls 2

constBeginMethod · 0.80
constEndMethod · 0.80

Tested by 4

testFindModelMethod · 0.64
testRemoveModelMethod · 0.64
testAddRemoveProblemsMethod · 0.64
testSetProblemsMethod · 0.64