From 98350997b78efbdbe35a56a0700ac16541229c22 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Wed, 16 Jun 2010 15:59:01 -0300 Subject: Modified some methods on OverloadData to accept references to function lists. The methods originally accept copies of AbstractMetaFunctionLists, now they use references instead. --- overloaddata.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'overloaddata.h') diff --git a/overloaddata.h b/overloaddata.h index 13276c609..734ef790b 100644 --- a/overloaddata.h +++ b/overloaddata.h @@ -36,7 +36,7 @@ typedef QList OverloadDataList; class OverloadData { public: - OverloadData(const AbstractMetaFunctionList overloads, const ShibokenGenerator* generator); + OverloadData(const AbstractMetaFunctionList& overloads, const ShibokenGenerator* generator); ~OverloadData(); int minArgs() const { return m_headOverloadData->m_minArgs; } @@ -101,9 +101,9 @@ public: QList invalidArgumentLengths() const; static int numberOfRemovedArguments(const AbstractMetaFunction* func, int finalArgPos = -1); - static QPair getMinMaxArguments(const AbstractMetaFunctionList overloads); + static QPair getMinMaxArguments(const AbstractMetaFunctionList& overloads); /// Returns true if all overloads have no more than one argument. - static bool isSingleArgument(const AbstractMetaFunctionList overloads); + static bool isSingleArgument(const AbstractMetaFunctionList& overloads); void dumpGraph(QString filename) const; QString dumpGraph() const; -- cgit v1.2.3