forked from qt-creator/qt-creator
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -75,7 +75,7 @@ void FunctionCycle::setFunctions(const QVector<const Function *> &functions)
|
||||
|
||||
foreach (const Function *func, functions) {
|
||||
// just add up self cost
|
||||
d->accumulateCost(d->m_selfCost, func->selfCosts());
|
||||
Private::accumulateCost(d->m_selfCost, func->selfCosts());
|
||||
// add outgoing calls to functions that are not part of the cycle
|
||||
foreach (const FunctionCall *call, func->outgoingCalls()) {
|
||||
if (!functions.contains(call->callee()))
|
||||
@@ -86,7 +86,7 @@ void FunctionCycle::setFunctions(const QVector<const Function *> &functions)
|
||||
if (!functions.contains(call->caller())) {
|
||||
d->accumulateCall(call, Function::Private::Incoming);
|
||||
d->m_called += call->calls();
|
||||
d->accumulateCost(d->m_inclusiveCost, call->costs());
|
||||
Private::accumulateCost(d->m_inclusiveCost, call->costs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user