diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index cd212354..d34a2718 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -194,7 +194,7 @@ std::string CAudioMixerBoard::GenFaderText ( CChannelShortInfo& ChanInfo ) { // convert IP address to text and show it const QHostAddress addrTest ( ChanInfo.iIpAddr ); - return std::string ( addrTest.toString().toLatin1() ); + return std::string ( addrTest.toString().toStdString() ); } else { diff --git a/src/channel.cpp b/src/channel.cpp index 9bb6df40..bd532b13 100755 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -686,7 +686,7 @@ for ( int i = 0; i < iCurNetwInBlSiFact * MIN_BLOCK_SIZE_SAMPLES; i++ ) { // log new connection CHostAddress address ( GetAddress() ); qDebug() << CLogTimeDate::toString() << "Connected with IP " << - address.InetAddr.toString().toLatin1(); + address.InetAddr.toString(); emit NewConnection(); } diff --git a/src/llconclientdlg.cpp b/src/llconclientdlg.cpp index c916b085..6297150f 100755 --- a/src/llconclientdlg.cpp +++ b/src/llconclientdlg.cpp @@ -296,10 +296,10 @@ CLlconClientDlg::~CLlconClientDlg() void CLlconClientDlg::closeEvent ( QCloseEvent * Event ) { // store IP address - pClient->strIPAddress = LineEditServerAddr->text().toLatin1(); + pClient->strIPAddress = LineEditServerAddr->text().toStdString(); // store fader tag - pClient->strName = LineEditFaderTag->text().toLatin1(); + pClient->strName = LineEditFaderTag->text().toStdString(); // default implementation of this event handler routine Event->accept(); @@ -364,7 +364,7 @@ void CLlconClientDlg::OnOpenGeneralSettings() void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName ) { // refresh internal name parameter - pClient->strName = strNewName.toLatin1(); + pClient->strName = strNewName.toStdString(); // update name at server pClient->SetRemoteName(); diff --git a/src/llconserverdlg.cpp b/src/llconserverdlg.cpp index bac13b8a..8d747ce9 100755 --- a/src/llconserverdlg.cpp +++ b/src/llconserverdlg.cpp @@ -114,7 +114,7 @@ void CLlconServerDlg::OnTimer() { // IP, port number vecpListViewItems[i]->setText ( 0, QString().sprintf ( "%s : %d", - vecHostAddresses[i].InetAddr.toString().toLatin1(), + vecHostAddresses[i].InetAddr.toString().toStdString(), vecHostAddresses[i].iPort ) /* IP, port */); // name diff --git a/src/util.h b/src/util.h index c10ad847..b8186319 100755 --- a/src/util.h +++ b/src/util.h @@ -512,7 +512,7 @@ public: { if ( bDoLogging ) { - fprintf ( pFile, "%s\n", sNewStr.toLatin1() ); + fprintf ( pFile, "%s\n", sNewStr.toStdString() ); fflush ( pFile ); } }