Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26015

Coverity analysis defect 99879: Copy without assign

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL

      Class has user-written copy constructor but no user-written assignment operator

      Defect 99879 (STATIC_C)
      Checker COPY_WITHOUT_ASSIGN (subcategory none)
      File: /src/mongo/db/views/view.h
      Parse Warning (no function name available)
      /src/mongo/db/views/view.h, line: 44
      Class "mongo::ViewDefinition" has a user-written copy constructor "mongo::ViewDefinition::ViewDefinition(mongo::ViewDefinition const &)" but no corresponding user-written assignment operator.

          class ViewDefinition {
      

      /src/mongo/db/views/view.cpp, line: 50
      User-written copy constructor.

          ViewDefinition::ViewDefinition(const ViewDefinition& other)
      

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: