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:
Jon Siwek 2013-09-16 15:40:44 -05:00
parent c8758c4f24
commit 19b15217f0

View file

@ -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;
} }
} }