mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 02:54:33 +02:00
Fix build
This commit is contained in:
@@ -575,18 +575,11 @@ Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo )
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Servent::incomingConnection( int sd )
|
|
||||||
{
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
Q_UNUSED( sd );
|
|
||||||
Q_ASSERT( false );
|
|
||||||
#else
|
|
||||||
incomingConnection( (qintptr) sd );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
Servent::incomingConnection( qintptr sd )
|
Servent::incomingConnection( qintptr sd )
|
||||||
|
#else
|
||||||
|
Servent::incomingConnection( int sd )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Q_ASSERT( this->thread() == QThread::currentThread() );
|
Q_ASSERT( this->thread() == QThread::currentThread() );
|
||||||
|
|
||||||
|
@@ -150,12 +150,11 @@ signals:
|
|||||||
void ready();
|
void ready();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Would be nice to ifdef this, but we would need CMake 2.8.11 for that as a requirement
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
// #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
|
||||||
virtual void incomingConnection( qintptr sd );
|
virtual void incomingConnection( qintptr sd );
|
||||||
// #else
|
#else
|
||||||
virtual void incomingConnection( int sd );
|
virtual void incomingConnection( int sd );
|
||||||
// #endif
|
#endif
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setExternalAddress( QHostAddress ha, unsigned int port );
|
void setExternalAddress( QHostAddress ha, unsigned int port );
|
||||||
|
Reference in New Issue
Block a user