mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Minor refactor to broxygen enum comments.
Coverity claimed a mismatched iterator here. Don't think it was, but this might make it either go away or make its insane template output understandable. Else at least it makes the code more readable.
This commit is contained in:
parent
c8758c4f24
commit
19b15217f0
1 changed files with 2 additions and 2 deletions
|
@ -1403,8 +1403,8 @@ void CommentedEnumType::AddComment(const string& module_name, const char* name,
|
||||||
comments[copy_string(fullname.c_str())] = new_comments;
|
comments[copy_string(fullname.c_str())] = new_comments;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
comments[fullname.c_str()]->splice(comments[fullname.c_str()]->end(),
|
list<string>* prev_comments = comments[fullname.c_str()];
|
||||||
*new_comments);
|
prev_comments->splice(prev_comments->end(), *new_comments);
|
||||||
delete new_comments;
|
delete new_comments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue