Fixed Arguments.cpp causing testing failures
parent
f2f212f2aa
commit
316709b898
|
@ -71,19 +71,24 @@ string ArgumentList::types() const {
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
string ArgumentList::signature() const {
|
string ArgumentList::signature() const {
|
||||||
string sig;
|
string sig;
|
||||||
|
bool cap=false;
|
||||||
|
|
||||||
BOOST_FOREACH(Argument arg, *this)
|
BOOST_FOREACH(Argument arg, *this)
|
||||||
{
|
{
|
||||||
// original
|
|
||||||
|
BOOST_FOREACH(char ch, arg.type)
|
||||||
|
if(isupper(ch))
|
||||||
|
{
|
||||||
|
sig += ch;
|
||||||
|
//If there is a capital letter, we don't want to readd it below
|
||||||
|
cap=true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!cap)
|
||||||
sig += arg.type[0];
|
sig += arg.type[0];
|
||||||
|
|
||||||
// version to disambiguate
|
//Reset to default
|
||||||
// if(sig.length() == 0)
|
cap = false;
|
||||||
// sig += arg.type[0];
|
|
||||||
//
|
|
||||||
// BOOST_FOREACH(char ch, arg.type)
|
|
||||||
// if(isupper(ch))
|
|
||||||
// sig += ch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return sig;
|
return sig;
|
||||||
|
|
Loading…
Reference in New Issue