File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -287,13 +287,13 @@ void RawCommentList::addComment(const RawComment &RC,
287
287
288
288
// If this is the first Doxygen comment, save it (because there isn't
289
289
// anything to merge it with).
290
- if ( OrderedComments[CommentFile]. empty ()) {
291
- OrderedComments[CommentFile][CommentOffset] =
292
- new (Allocator) RawComment (RC);
290
+ auto &OC = OrderedComments[CommentFile];
291
+ if (OC. empty ()) {
292
+ OC[CommentOffset] = new (Allocator) RawComment (RC);
293
293
return ;
294
294
}
295
295
296
- const RawComment &C1 = *OrderedComments[CommentFile] .rbegin ()->second ;
296
+ const RawComment &C1 = *OC .rbegin ()->second ;
297
297
const RawComment &C2 = RC;
298
298
299
299
// Merge comments only if there is only whitespace between them.
You can’t perform that action at this time.
0 commit comments