From 98b6fa2eafe894911d5b8333046d5fd996063c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 14 Dec 2013 08:35:46 +0100 Subject: [PATCH] SymbolDatabase: Use std::size_t for Function::getArgument() argument since Function::argCount() returns a std::size_t --- lib/symboldatabase.cpp | 2 +- lib/symboldatabase.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 890e38975..d6acbc2be 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2067,7 +2067,7 @@ bool Function::isImplicitlyVirtual_rec(const ::Type* baseType, bool& safe) const return false; } -const Variable* Function::getArgumentVar(unsigned int num) const +const Variable* Function::getArgumentVar(std::size_t num) const { for (std::list::const_iterator i = argumentList.begin(); i != argumentList.end(); ++i) { if (i->index() == num) diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index f4b9f1fc0..953d4a4bb 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -505,7 +505,7 @@ public: std::size_t minArgCount() const { return argumentList.size() - initArgCount; } - const Variable* getArgumentVar(unsigned int num) const; + const Variable* getArgumentVar(std::size_t num) const; unsigned int initializedArgCount() const { return initArgCount; }