mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 08:50:06 +00:00
Ignore privacy
Moved field offset calculations for inherited classes to when the inherited classes are processed. This removes the need to have to remember if fields were inherited or not, the offset already reflects the correct offset. refs #218
This commit is contained in:
@ -129,7 +129,7 @@ void PrintFileContents10::print_class_attr(std::ofstream & outfile , ClassValues
|
||||
}
|
||||
}
|
||||
// Print an empty sentinel attribute at the end of the class.
|
||||
FieldDescription * new_fdes = new FieldDescription(std::string(""), false, false, 0) ;
|
||||
FieldDescription * new_fdes = new FieldDescription(std::string(""), false) ;
|
||||
print_field_attr(outfile, new_fdes) ;
|
||||
outfile << " };" << std::endl ;
|
||||
delete new_fdes ;
|
||||
|
Reference in New Issue
Block a user