From 19b15217f0a1b248c96ebe14684255c4774e54fd Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Mon, 16 Sep 2013 15:40:44 -0500 Subject: [PATCH] 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. --- src/Type.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Type.cc b/src/Type.cc index d7236e0344..2b9faa8018 100644 --- a/src/Type.cc +++ b/src/Type.cc @@ -1403,8 +1403,8 @@ void CommentedEnumType::AddComment(const string& module_name, const char* name, comments[copy_string(fullname.c_str())] = new_comments; else { - comments[fullname.c_str()]->splice(comments[fullname.c_str()]->end(), - *new_comments); + list* prev_comments = comments[fullname.c_str()]; + prev_comments->splice(prev_comments->end(), *new_comments); delete new_comments; } }