Use of auto that causes a copy
Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
/src/mongo/db/query/search/search_index_command_testing_helper.h:295: AUTO_CAUSES_COPY 174856 Using the "auto" keyword without an "&" causes the copy of an object of type "_gnu_cxx::_alloc_traits<std::allocator<mongo::IndexDefinition>, mongo::IndexDefinition>::value_type".
/src/mongo/db/query/search/search_index_command_testing_helper.h:295: AUTO_CAUSES_COPY 174856 The variable "indexDefinition" has a non-"const" type, however its value is never changed.
- depends on
-
SERVER-107344 Coverity analysis defect 174805: Use of auto that causes a copy
-
- Closed
-