Changeset 9959 in ntrip


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

minor changes to be msvc compatible

Location:
trunk/BNC/src
Files:
4 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          }
  • trunk/BNC/src/bncnetqueryudp.cpp

    r8252 r9959  
    1111 * Created:    04-Feb-2009
    1212 *
    13  * Changes:   
     13 * Changes:
    1414 *
    1515 * -----------------------------------------------------------------------*/
     
    5050}
    5151
    52 // 
     52//
    5353////////////////////////////////////////////////////////////////////////////
    5454void bncNetQueryUdp::stop() {
     
    5757}
    5858
    59 // 
     59//
    6060////////////////////////////////////////////////////////////////////////////
    6161void bncNetQueryUdp::slotKeepAlive() {
     
    6666}
    6767
    68 // 
     68//
    6969////////////////////////////////////////////////////////////////////////////
    7070void bncNetQueryUdp::waitForRequestResult(const QUrl&, QByteArray&) {
    7171}
    7272
    73 // 
     73//
    7474////////////////////////////////////////////////////////////////////////////
    7575void bncNetQueryUdp::waitForReadyRead(QByteArray& outData) {
     
    129129    QString passW = QUrl::fromPercentEncoding(_url.password().toLatin1());
    130130    QByteArray userAndPwd;
    131    
     131
    132132    if(!uName.isEmpty() || !passW.isEmpty()) {
    133133      userAndPwd = "Authorization: Basic " + (uName.toLatin1() + ":" +
    134134      passW.toLatin1()).toBase64() + "\r\n";
    135135    }
    136    
     136
    137137    QByteArray reqStr = "GET " + _url.path().toLatin1() + " HTTP/1.1\r\n"
    138138                      + "Host: " + _url.host().toLatin1() + "\r\n"
     
    143143    }
    144144    reqStr += userAndPwd + "Connection: close\r\n\r\n";
    145    
    146     char rtpbuffer[12 + reqStr.size()];
     145
     146    std::vector <char> rtpbuffer(12 + reqStr.size());
    147147    rtpbuffer[0]  = 128;
    148148    rtpbuffer[1]  =  97;
     
    151151    }
    152152    for (int ii = 0; ii < reqStr.size(); ii++) {
    153       rtpbuffer[12+ii] = reqStr[ii]; 
     153      rtpbuffer[12+ii] = reqStr[ii];
    154154    }
    155155
  • trunk/BNC/src/bncwindow.cpp

    r9958 r9959  
    18351835
    18361836  int nRows = _mountPointsTable->rowCount();
    1837   bool flg[nRows];
     1837  std::vector <bool> flg(nRows);
    18381838  for (int iRow = 0; iRow < nRows; iRow++) {
    18391839    if (_mountPointsTable->item(iRow,1)->isSelected()) {
  • trunk/BNC/src/pppWidgets.cpp

    r9907 r9959  
    612612void t_pppWidgets::slotDelStation() {
    613613  int nRows = _staTable->rowCount();
    614   bool flg[nRows];
     614  std::vector <bool> flg(nRows);
    615615  for (int iRow = 0; iRow < nRows; iRow++) {
    616     if (_staTable->isItemSelected(_staTable->item(iRow,1))) {
     616    if (_staTable->item(iRow,1)->isSelected()) {
    617617      flg[iRow] = true;
    618618    }
Note: See TracChangeset for help on using the changeset viewer.