exchanged .toLatin1() by .toStdString()

This commit is contained in:
Volker Fischer 2008-01-22 07:58:08 +00:00
parent 8af1c4d435
commit af72c03dd8
5 changed files with 7 additions and 7 deletions

View file

@ -194,7 +194,7 @@ std::string CAudioMixerBoard::GenFaderText ( CChannelShortInfo& ChanInfo )
{ {
// convert IP address to text and show it // convert IP address to text and show it
const QHostAddress addrTest ( ChanInfo.iIpAddr ); const QHostAddress addrTest ( ChanInfo.iIpAddr );
return std::string ( addrTest.toString().toLatin1() ); return std::string ( addrTest.toString().toStdString() );
} }
else else
{ {

View file

@ -686,7 +686,7 @@ for ( int i = 0; i < iCurNetwInBlSiFact * MIN_BLOCK_SIZE_SAMPLES; i++ ) {
// log new connection // log new connection
CHostAddress address ( GetAddress() ); CHostAddress address ( GetAddress() );
qDebug() << CLogTimeDate::toString() << "Connected with IP " << qDebug() << CLogTimeDate::toString() << "Connected with IP " <<
address.InetAddr.toString().toLatin1(); address.InetAddr.toString();
emit NewConnection(); emit NewConnection();
} }

View file

@ -296,10 +296,10 @@ CLlconClientDlg::~CLlconClientDlg()
void CLlconClientDlg::closeEvent ( QCloseEvent * Event ) void CLlconClientDlg::closeEvent ( QCloseEvent * Event )
{ {
// store IP address // store IP address
pClient->strIPAddress = LineEditServerAddr->text().toLatin1(); pClient->strIPAddress = LineEditServerAddr->text().toStdString();
// store fader tag // store fader tag
pClient->strName = LineEditFaderTag->text().toLatin1(); pClient->strName = LineEditFaderTag->text().toStdString();
// default implementation of this event handler routine // default implementation of this event handler routine
Event->accept(); Event->accept();
@ -364,7 +364,7 @@ void CLlconClientDlg::OnOpenGeneralSettings()
void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName ) void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName )
{ {
// refresh internal name parameter // refresh internal name parameter
pClient->strName = strNewName.toLatin1(); pClient->strName = strNewName.toStdString();
// update name at server // update name at server
pClient->SetRemoteName(); pClient->SetRemoteName();

View file

@ -114,7 +114,7 @@ void CLlconServerDlg::OnTimer()
{ {
// IP, port number // IP, port number
vecpListViewItems[i]->setText ( 0, QString().sprintf ( "%s : %d", vecpListViewItems[i]->setText ( 0, QString().sprintf ( "%s : %d",
vecHostAddresses[i].InetAddr.toString().toLatin1(), vecHostAddresses[i].InetAddr.toString().toStdString(),
vecHostAddresses[i].iPort ) /* IP, port */); vecHostAddresses[i].iPort ) /* IP, port */);
// name // name

View file

@ -512,7 +512,7 @@ public:
{ {
if ( bDoLogging ) if ( bDoLogging )
{ {
fprintf ( pFile, "%s\n", sNewStr.toLatin1() ); fprintf ( pFile, "%s\n", sNewStr.toStdString() );
fflush ( pFile ); fflush ( pFile );
} }
} }