mirror of
https://github.com/nasa/trick.git
synced 2025-01-23 12:58:04 +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
3b6adb01d0
commit
352ec7d821
@ -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…
Reference in New Issue
Block a user