Coverity analysis defect 178453: Variable copied when it could be moved

XMLWordPrintableJSON

    • Storage Engines - Persistence
    • SE Persistence backlog
    • None

      Variable copied when it could be moved

      Unnecessary object copies can affect performance. Creating a copy of a variable that is no longer used instead of using std::move().
      /test/model/src/driver/kv_workload_generator.cpp:644: COPY_INSTEAD_OF_MOVE 178453 "p" is copied and then passed-by-reference as parameter to STL insertion function "push_back", when it could be moved instead.

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

              Created:
              Updated:
              Resolved: