SymbolDatabase: Use std::size_t for Function::getArgument() argument since Function::argCount() returns a std::size_t
This commit is contained in:
parent
57ecdd693c
commit
98b6fa2eaf
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue