Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 312 Bytes

redundantCopyLocalConst.md

File metadata and controls

11 lines (6 loc) · 312 Bytes

Pattern: Redundant copy for local const

Issue: -

Description

The const variable is assigned a copy of the data. You can avoid the unnecessary data copying by converting to const reference.

Further Reading