Changeset 8756 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp


Ignore:
Timestamp:
May 16, 2019, 1:57:31 PM (5 years ago)
Author:
mervart
Message:

Sort MP data (make the largest values always visible)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r8567 r8756  
    533533}
    534534
     535// Auxiliary Function for sorting MP data
     536////////////////////////////////////////////////////////////////////////////
     537bool t_reqcAnalyze::mpLessThan(const t_polarPoint* p1, const t_polarPoint* p2) {
     538  return p1->_value < p2->_value;
     539}
     540
    535541//
    536542////////////////////////////////////////////////////////////////////////////
     
    576582        }
    577583      }
     584
     585      // Sort MP data (make the largest values always visible)
     586      // -----------------------------------------------------
     587      qStableSort(dataMP._data->begin(), dataMP._data->end(), mpLessThan);
    578588    }
    579589  }
Note: See TracChangeset for help on using the changeset viewer.