Coverity analysis defect 127093: AUTO_CAUSES_COPY

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Execution Team 2022-09-05
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/db/catalog/validate_adaptor.cpp:264: AUTO_CAUSES_COPY 127093 Using the "auto" keyword without an "&" causes the copy of an object of type basic_string.

            Assignee:
            Yuhong Zhang
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: