Commit dcf807d7 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Valgrind: Pass const vector by reference



Change-Id: I1625d52a6743887db80ed9943a888d094b2d8012
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1c2cb4be
......@@ -67,7 +67,7 @@ FunctionCycle::~FunctionCycle()
// d should be deleted by Function::~Function()
}
void FunctionCycle::setFunctions(const QVector<const Function *> functions)
void FunctionCycle::setFunctions(const QVector<const Function *> &functions)
{
Private *d = CYCLE_D;
......
......@@ -51,7 +51,7 @@ public:
/// sets the list of functions that make up this cycle
/// NOTE: ownership is *not* transferred to the cycle
void setFunctions(const QVector<const Function *> functions);
void setFunctions(const QVector<const Function *> &functions);
/// @return the functions that make up this cycle
QVector<const Function *> functions() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment