mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-29 23:14:06 +08:00
Fix implicit conversion
This commit is contained in:
parent
fae8a8a65f
commit
a8fb6b49f5
@ -233,7 +233,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con
|
|||||||
socket->connectToServer( blockServerName );
|
socket->connectToServer( blockServerName );
|
||||||
|
|
||||||
if( socket->state() == QLocalSocket::ConnectingState ){
|
if( socket->state() == QLocalSocket::ConnectingState ){
|
||||||
socket->waitForConnected( timeout - time.elapsed() );
|
socket->waitForConnected( static_cast<int>(timeout - time.elapsed()) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// If connected break out of the loop
|
// If connected break out of the loop
|
||||||
@ -269,7 +269,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con
|
|||||||
|
|
||||||
socket->write( header );
|
socket->write( header );
|
||||||
socket->write( initMsg );
|
socket->write( initMsg );
|
||||||
bool result = socket->waitForBytesWritten( timeout - time.elapsed() );
|
bool result = socket->waitForBytesWritten( static_cast<int>(timeout - time.elapsed()) );
|
||||||
socket->flush();
|
socket->flush();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user