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

CHANGE: #105 toAscii deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.