Changeset 8204 in ntrip for trunk/BNC/src/upload


Ignore:
Timestamp:
Dec 11, 2017, 3:00:40 PM (6 years ago)
Author:
wiese
Message:

CHANGE: #105 toAscii deprecated

Location:
trunk/BNC/src/upload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r8145 r8204  
    280280  // Read first line (with epoch time)
    281281  // ---------------------------------
    282   QTextStream in(lines[0].toAscii());
     282  QTextStream in(lines[0].toLatin1());
    283283  QString hlp;
    284284  int year, month, day, hour, min;
     
    291291      "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str())
    292292          + " " + QByteArray(epoTime.timestr().c_str()) + " "
    293           + _casterID.toAscii(), false));
     293          + _casterID.toLatin1(), false));
    294294
    295295  struct ClockOrbit co;
     
    369369    t_prn prn;
    370370
    371     QTextStream in(lines[ii].toAscii());
     371    QTextStream in(lines[ii].toLatin1());
    372372
    373373    in >> key;
     
    401401    }
    402402    // satellite specific parameters
    403     char sys = key.mid(0, 1).at(0).toAscii();
     403    char sys = key.mid(0, 1).at(0).toLatin1();
    404404    int number = key.mid(1, 2).toInt();
    405405    int flags = 0;
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r8153 r8204  
    9090        _outSocket->write(_outBuffer);
    9191        _outSocket->flush();
    92         emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
     92        emit newBytes(_mountpoint.toLatin1(), _outBuffer.size());
    9393      }
    9494    }
     
    140140    delete _outSocket;
    141141    _outSocket = 0;
    142     emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.toAscii(), true));
     142    emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.toLatin1(), true));
    143143    return;
    144144  }
    145145
    146   QByteArray msg = "SOURCE " + _password.toAscii() + " /" +
    147                    _mountpoint.toAscii() + "\r\n" +
     146  QByteArray msg = "SOURCE " + _password.toLatin1() + " /" +
     147                   _mountpoint.toLatin1() + "\r\n" +
    148148                   "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
    149149
     
    157157    delete _outSocket;
    158158    _outSocket = 0;
    159     emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toAscii(), true));
     159    emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1(), true));
    160160  }
    161161  else {
    162     emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toAscii(), true));
     162    emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toLatin1(), true));
    163163    _sOpenTrial = 0;
    164164  }
Note: See TracChangeset for help on using the changeset viewer.