Coverity analysis defect 122835: AUTO_CAUSES_COPY

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Security 2022-09-05, Security 2022-09-19
    • None
    • 3
    • 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/util/net/ssl_manager_openssl.cpp:993: AUTO_CAUSES_COPY 122835 Using the "auto" keyword without an "&" causes the copy of an object of type basic_string.

            Assignee:
            Warren James
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: