Skip to content

Commit

Permalink
Avoid unnecessary copying by using a "const" reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Nov 8, 2023
1 parent af3e0e2 commit 57dadcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion final/output/tty/foptiattr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ inline void FOptiAttr::prevent_no_color_video_attributes ( FChar& attr
if ( ! bit )
continue;

auto handler = no_color_video_handlers[ffs(bit)];
const auto& handler = no_color_video_handlers[ffs(bit)];

if ( handler )
handler(this, attr);
Expand Down

0 comments on commit 57dadcf

Please sign in to comment.