diff --git a/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp b/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp index 72db30dd2c6..5eb1f57072e 100644 --- a/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp +++ b/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp @@ -67,7 +67,7 @@ FunctionCycle::~FunctionCycle() // d should be deleted by Function::~Function() } -void FunctionCycle::setFunctions(const QVector functions) +void FunctionCycle::setFunctions(const QVector &functions) { Private *d = CYCLE_D; diff --git a/src/plugins/valgrind/callgrind/callgrindfunctioncycle.h b/src/plugins/valgrind/callgrind/callgrindfunctioncycle.h index 39b92e5ae78..c184090200e 100644 --- a/src/plugins/valgrind/callgrind/callgrindfunctioncycle.h +++ b/src/plugins/valgrind/callgrind/callgrindfunctioncycle.h @@ -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 functions); + void setFunctions(const QVector &functions); /// @return the functions that make up this cycle QVector functions() const;