SymbolDatabase: Use std::size_t for Function::getArgument() argument since Function::argCount() returns a std::size_t

This commit is contained in:
Daniel Marjamäki 2013-12-14 08:35:46 +01:00
parent 57ecdd693c
commit 98b6fa2eaf
2 changed files with 2 additions and 2 deletions

View File

@ -2067,7 +2067,7 @@ bool Function::isImplicitlyVirtual_rec(const ::Type* baseType, bool& safe) const
return false; return false;
} }
const Variable* Function::getArgumentVar(unsigned int num) const const Variable* Function::getArgumentVar(std::size_t num) const
{ {
for (std::list<Variable>::const_iterator i = argumentList.begin(); i != argumentList.end(); ++i) { for (std::list<Variable>::const_iterator i = argumentList.begin(); i != argumentList.end(); ++i) {
if (i->index() == num) if (i->index() == num)

View File

@ -505,7 +505,7 @@ public:
std::size_t minArgCount() const { std::size_t minArgCount() const {
return argumentList.size() - initArgCount; return argumentList.size() - initArgCount;
} }
const Variable* getArgumentVar(unsigned int num) const; const Variable* getArgumentVar(std::size_t num) const;
unsigned int initializedArgCount() const { unsigned int initializedArgCount() const {
return initArgCount; return initArgCount;
} }