Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16424

Coverity: mismatched prototype (x2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.0
    • Component/s: Config UI
    • Labels:
      None

      Description

      The method will not be called when virtual dispatch is used, this may cause the class to not perform as expected.
      In CONFIGURATOR::​CSimpleType::​getNodeByTypeAndNameAscending(CONFIGURATOR::​NODE_TYPES, char const*): Virtual function does not override parent method because of type signature mismatch, usually due to const (CWE-710)

      In CONFIGURATOR::​CSimpleType::​getNodeByTypeAndNameDescending(CONFIGURATOR::​NODE_TYPES, char const*): Virtual function does not override parent method because of type signature mismatch, usually due to const (CWE-710)
      … More
      Triage

      As well as fixing you should add override onto the prototype.

        Attachments

          Activity

            People

            • Assignee:
              kenrowland Kenneth A Rowland
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: