Fix AUTO_CAUSES_COPY coverity errors

XMLWordPrintableJSON

    • Fully Compatible
    • 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/cst/cst_match_translation.cpp:144: AUTO_CAUSES_COPY 123017 Using the "auto" keyword without an "&" causes the copy of an object of type CNode.

            Assignee:
            Ted Tuckman
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: