forked from qt-creator/qt-creator
Valgrind: Pass const vector by reference
Change-Id: I1625d52a6743887db80ed9943a888d094b2d8012 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user