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

CXRefNode::removeEmptyDirectories not sorting as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: XREF
    • Labels:
      None
    • Compatibility:
      Minor

      Description

      CXRefNode::removeEmptyDirectories() contains a call:

          dellist.sort(strptrcmprev);
      

      However dellist is a StringArray, and for some reason has the following definiion:

      void sort(bool nocase=false);

      So that class is sorting case-insignificant in order, rather than reverse case-siginficant.

      Should either call sortReverse(false) or add an overloaded sort to the StringArray implementation.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: