From 5a75c9e963094e84c3b5ab07b6562931d0eb9fff Mon Sep 17 00:00:00 2001 From: Andrew Melim Date: Wed, 14 Dec 2011 21:10:56 +0000 Subject: [PATCH] Fixed bug with Argument.cpp due to different constructor argument starting with the name letter --- wrap/Argument.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wrap/Argument.cpp b/wrap/Argument.cpp index 1610f98aa..329f0a643 100644 --- a/wrap/Argument.cpp +++ b/wrap/Argument.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "Argument.h" @@ -70,8 +71,17 @@ string ArgumentList::types() const { /* ************************************************************************* */ string ArgumentList::signature() const { string str; + BOOST_FOREACH(Argument arg, *this) - str += arg.type[0]; + { + BOOST_FOREACH(char ch, arg.type) + if(isupper(ch)) + str += ch; + + if(str.length() == 0) + str += arg.type[0]; + } + return str; }