[SERVER-68669] Coverity analysis defect 122849: AUTO_CAUSES_COPY Created: 09/Aug/22  Updated: 02/Sep/22  Resolved: 02/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Davis Haupt (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-68994 Fix AUTO_CAUSES_COPY coverity errors Closed
Operating System: ALL
Participants:

 Description   

AUTO_CAUSES_COPY

Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/db/matcher/rewrite_expr.cpp:236: AUTO_CAUSES_COPY 122849 Using the "auto" keyword without an "&" causes the copy of an object of type intrusive_ptr.


Generated at Thu Feb 08 06:11:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.