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


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

CHANGE: #105 toAscii deprecated

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

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3Decoder.cpp

    r8199 r8204  
    824824  else if ((type % 10) < 3) {
    825825    emit(newMessage(QString("%1: Block %2 contain partial data! Ignored!")
    826         .arg(_staID).arg(type).toAscii(), true));
     826        .arg(_staID).arg(type).toLatin1(), true));
    827827  }
    828828  if (!syncf) {
     
    14821482       * else. */
    14831483      if ((id >= 1057 && id <= 1068) || (id >= 1240 && id <= 1270)) {
    1484         if (!_coDecoders.contains(_staID.toAscii()))
    1485           _coDecoders[_staID.toAscii()] = new RTCM3coDecoder(_staID);
    1486         RTCM3coDecoder* coDecoder = _coDecoders[_staID.toAscii()];
     1484        if (!_coDecoders.contains(_staID.toLatin1()))
     1485          _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID);
     1486        RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
    14871487        if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize,
    14881488            errmsg) == success) {
     
    15001500            emit(newMessage(
    15011501                QString("%1: Block %2 contain partial data! Ignored!")
    1502                     .arg(_staID).arg(id).toAscii(), true));
     1502                    .arg(_staID).arg(id).toLatin1(), true));
    15031503            break; /* no use decoding partial data ATM, remove break when data can be used */
    15041504          case 1002:
     
    15111511            emit(newMessage(
    15121512                QString("%1: Block %2 contain partial data! Ignored!")
    1513                     .arg(_staID).arg(id).toAscii(), true));
     1513                    .arg(_staID).arg(id).toLatin1(), true));
    15141514            break; /* no use decoding partial data ATM, remove break when data can be used */
    15151515          case 1010:
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r8028 r8204  
    146146    delete _out;
    147147    if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
    148       _out = new ofstream( _fileName.toAscii().data(), ios_base::out | ios_base::app );
     148      _out = new ofstream( _fileName.toLatin1().data(), ios_base::out | ios_base::app );
    149149    }
    150150    else {
    151       _out = new ofstream( _fileName.toAscii().data() );
     151      _out = new ofstream( _fileName.toLatin1().data() );
    152152    }
    153153  }
     
    560560
    561561  if (alreadySet && different) {
    562     emit newMessage("RTCM3coDecoder: Provider Changed: " + _staID.toAscii(), true);
     562    emit newMessage("RTCM3coDecoder: Provider Changed: " + _staID.toLatin1(), true);
    563563    emit providerIDChanged(_staID);
    564564  }
Note: See TracChangeset for help on using the changeset viewer.