Valgrind: Pass const vector by reference

Change-Id: I1625d52a6743887db80ed9943a888d094b2d8012
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Orgad Shaneh
2014-05-19 23:36:49 +03:00
committed by hjk
parent 1c2cb4bea0
commit dcf807d712
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ FunctionCycle::~FunctionCycle()
// d should be deleted by Function::~Function() // 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; Private *d = CYCLE_D;

View File

@@ -51,7 +51,7 @@ public:
/// sets the list of functions that make up this cycle /// sets the list of functions that make up this cycle
/// NOTE: ownership is *not* transferred to the 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 /// @return the functions that make up this cycle
QVector<const Function *> functions() const; QVector<const Function *> functions() const;