From dcf807d712a3c3d6ea7df80c4c05dc950f660842 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 19 May 2014 23:36:49 +0300 Subject: [PATCH] Valgrind: Pass const vector by reference Change-Id: I1625d52a6743887db80ed9943a888d094b2d8012 Reviewed-by: hjk --- src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp | 2 +- src/plugins/valgrind/callgrind/callgrindfunctioncycle.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;