Fixed Arguments.cpp causing testing failures

release/4.3a0
Andrew Melim 2011-12-15 22:26:39 +00:00
parent f2f212f2aa
commit 316709b898
1 changed files with 14 additions and 9 deletions

View File

@ -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
sig += arg.type[0];
// version to disambiguate BOOST_FOREACH(char ch, arg.type)
// if(sig.length() == 0) if(isupper(ch))
// sig += arg.type[0]; {
// sig += ch;
// BOOST_FOREACH(char ch, arg.type) //If there is a capital letter, we don't want to readd it below
// if(isupper(ch)) cap=true;
// sig += ch; }
if(!cap)
sig += arg.type[0];
//Reset to default
cap = false;
} }
return sig; return sig;