From 316709b8980f25056a9cc816c0aaf663237f8a6a Mon Sep 17 00:00:00 2001 From: Andrew Melim Date: Thu, 15 Dec 2011 22:26:39 +0000 Subject: [PATCH] Fixed Arguments.cpp causing testing failures --- wrap/Argument.cpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/wrap/Argument.cpp b/wrap/Argument.cpp index 0c82bfc7f..07f68a11d 100644 --- a/wrap/Argument.cpp +++ b/wrap/Argument.cpp @@ -71,19 +71,24 @@ string ArgumentList::types() const { /* ************************************************************************* */ string ArgumentList::signature() const { string sig; + bool cap=false; BOOST_FOREACH(Argument arg, *this) { - // original - sig += arg.type[0]; - // version to disambiguate -// if(sig.length() == 0) -// sig += arg.type[0]; -// -// BOOST_FOREACH(char ch, arg.type) -// if(isupper(ch)) -// sig += ch; + 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]; + + //Reset to default + cap = false; } return sig;