Fixed bug with Argument.cpp due to different constructor argument starting with the name letter

release/4.3a0
Andrew Melim 2011-12-14 21:10:56 +00:00
parent 051e30648d
commit 5a75c9e963
1 changed files with 11 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include <fstream>
#include <sstream>
#include <boost/foreach.hpp>
#include <boost/regex.hpp>
#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;
}