diff options
author | Shatur95 <genaloner@gmail.com> | 2020-10-15 01:29:25 +0300 |
---|---|---|
committer | Shatur95 <genaloner@gmail.com> | 2020-10-15 01:29:25 +0300 |
commit | a8fb6b49f57f02970f09870e999d67c01c045996 (patch) | |
tree | 750f401bd6cb4ca8adc93fac59a77b9f6c9af393 | |
parent | Fix conversion from int to quint32 (diff) | |
download | singleapplication-a8fb6b49f57f02970f09870e999d67c01c045996.tar.xz |
Fix implicit conversion
-rw-r--r-- | singleapplication_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index f2a95c0..bb154bf 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -233,7 +233,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con socket->connectToServer( blockServerName ); 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 @@ -269,7 +269,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con socket->write( header ); socket->write( initMsg ); - bool result = socket->waitForBytesWritten( timeout - time.elapsed() ); + bool result = socket->waitForBytesWritten( static_cast<int>(timeout - time.elapsed()) ); socket->flush(); return result; } |