mirror of
https://github.com/nasa/trick.git
synced 2025-05-06 02:28:06 +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
@ -60,7 +60,7 @@ 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(), '*', ' ') ;
|
||||||
spos = user_type_name.find("const ") ;
|
spos = user_type_name.find("const ") ;
|
||||||
if ( spos != std::string::npos ) {
|
if ( spos != std::string::npos ) {
|
||||||
user_type_name.erase( spos , spos + 5) ;
|
user_type_name.erase( spos , spos + 6) ;
|
||||||
}
|
}
|
||||||
spos = user_type_name.find("[") ;
|
spos = user_type_name.find("[") ;
|
||||||
if ( spos != std::string::npos ) {
|
if ( spos != std::string::npos ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user