Fix CommentedTypeDecl to track whether it's in a record like TypeDecl does.

This commit is contained in:
Jon Siwek 2011-05-12 19:55:26 -05:00
parent da5618b9ba
commit 70e14cb7d5
4 changed files with 14 additions and 4 deletions

View file

@ -848,8 +848,8 @@ void TypeDecl::DescribeReST(ODesc* d) const
}
CommentedTypeDecl::CommentedTypeDecl(BroType* t, const char* i,
attr_list* attrs, std::list<std::string>* cmnt_list)
: TypeDecl(t, i, attrs)
attr_list* attrs, bool in_record, std::list<std::string>* cmnt_list)
: TypeDecl(t, i, attrs, in_record)
{
comments = cmnt_list;
}