Changeset 9959 in ntrip for trunk/BNC/src/bncfigureppp.cpp


Ignore:
Timestamp:
Jan 26, 2023, 11:51:50 AM (15 months ago)
Author:
stuerze
Message:

minor changes to be msvc compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncfigureppp.cpp

    r8252 r9959  
    2929 * Class:      bncFigurePPP
    3030 *
    31  * Purpose:   
     31 * Purpose:
    3232 *
    3333 * Author:     Mervart
     
    3535 * Created:    11-Nov-2009
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    6060// Destructor
    6161////////////////////////////////////////////////////////////////////////////
    62 bncFigurePPP::~bncFigurePPP() { 
     62bncFigurePPP::~bncFigurePPP() {
    6363  for (int ii = 0; ii < _pos.size(); ++ii) {
    6464    delete _pos[ii];
     
    6666}
    6767
    68 // 
     68//
    6969////////////////////////////////////////////////////////////////////////////
    7070void bncFigurePPP::reset() {
     
    7777}
    7878
    79 // 
     79//
    8080////////////////////////////////////////////////////////////////////////////
    8181void bncFigurePPP::slotNewPosition(QByteArray staID, bncTime time, QVector<double> xx){
     
    8585  bncSettings settings;
    8686
    87   if (settings.value("PPP/audioResponse").toString() != "" ) { 
     87  if (settings.value("PPP/audioResponse").toString() != "" ) {
    8888    _audioResponseThreshold = settings.value("PPP/audioResponse").toDouble();
    8989  }
     
    136136}
    137137
    138 // 
     138//
    139139////////////////////////////////////////////////////////////////////////////
    140140void bncFigurePPP::paintEvent(QPaintEvent *) {
     
    157157    // --------------------------------------------------------
    158158    _neuMax = 0.0;
    159     double neu[_pos.size()][3];
     159    vector< vector<double> > neu(_pos.size(), vector<double>(3));
    160160    for (int ii = 0; ii < _pos.size(); ++ii) {
    161161      for (int ic = 0; ic < 3; ++ic) {
     
    172172        _neuMax = 0.151;
    173173      }
    174      
     174
    175175      unsigned hour, minute;
    176176      double   second;
     
    223223          if ( xFirstCharTic > pltPoint(_tMin, 0.0).x()) {
    224224            painter.setPen(QColor(Qt::black));
    225             painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7), 
     225            painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7),
    226226                             strTic);
    227             painter.drawLine(pntTic.x(), pntTic.y(), 
     227            painter.drawLine(pntTic.x(), pntTic.y(),
    228228                             pntTic.x(), pntTic.y()+ww/2);
    229229          }
Note: See TracChangeset for help on using the changeset viewer.