mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Trick::MemoryManager::add_attr_info improperly removes the const keyword
Changed the search from "const" to "const " because we're intersted in removing the const keyword preceding a type name. refs #184
This commit is contained in:
parent
912778423b
commit
2c5a46a8bc
@ -58,9 +58,9 @@ int Trick::MemoryManager::add_attr_info( std::string & user_type_string , ATTRIB
|
||||
std::replace( user_type_name.begin(), user_type_name.end(), '<', '_') ;
|
||||
std::replace( user_type_name.begin(), user_type_name.end(), ',', '_') ;
|
||||
std::replace( user_type_name.begin(), user_type_name.end(), '*', ' ') ;
|
||||
spos = user_type_name.find("const") ;
|
||||
spos = user_type_name.find("const ") ;
|
||||
if ( spos != std::string::npos ) {
|
||||
user_type_name.erase( spos , spos + 5) ;
|
||||
user_type_name.erase( spos , spos + 6) ;
|
||||
}
|
||||
spos = user_type_name.find("[") ;
|
||||
if ( spos != std::string::npos ) {
|
||||
|
Loading…
Reference in New Issue
Block a user