exchanged .toLatin1() by .toStdString()
This commit is contained in:
parent
8af1c4d435
commit
af72c03dd8
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -512,7 +512,7 @@ public:
|
|||
{
|
||||
if ( bDoLogging )
|
||||
{
|
||||
fprintf ( pFile, "%s\n", sNewStr.toLatin1() );
|
||||
fprintf ( pFile, "%s\n", sNewStr.toStdString() );
|
||||
fflush ( pFile );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue