mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Some more style changes
This commit is contained in:
parent
152609e68d
commit
d7eea2cc8e
@ -420,7 +420,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
|
||||
sipInfos.append( info );
|
||||
}
|
||||
|
||||
if ( sipInfos.length() == 0 )
|
||||
if ( sipInfos.isEmpty() )
|
||||
{
|
||||
// We are not visible via any IP, send a dummy SipInfo
|
||||
SipInfo info = SipInfo();
|
||||
@ -847,9 +847,9 @@ Servent::connectToPeer( const peerinfo_ptr& peerInfo )
|
||||
|
||||
|
||||
void
|
||||
Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipInfoList, Connection* conn )
|
||||
Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipInfos, Connection* conn )
|
||||
{
|
||||
if ( sipInfoList.isEmpty() )
|
||||
if ( sipInfos.isEmpty() )
|
||||
{
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "No more possible SIP endpoints for " << conn->name() << " skipping.";
|
||||
// If a peerinfo was supplied and has a ControlConnection which should be destroyed, than use this
|
||||
@ -860,7 +860,7 @@ Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipIn
|
||||
delete conn;
|
||||
return;
|
||||
}
|
||||
QList<SipInfo> sipInfo = QList<SipInfo>(sipInfoList);
|
||||
QList<SipInfo> sipInfo = QList<SipInfo>(sipInfos);
|
||||
// Use first available SIP endpoint and remove it from the list
|
||||
SipInfo info = sipInfo.takeFirst();
|
||||
if ( !info.isVisible() )
|
||||
|
@ -90,7 +90,7 @@ public slots:
|
||||
|
||||
public:
|
||||
void connectToPeer( const Tomahawk::peerinfo_ptr& ha );
|
||||
void connectToPeer(const Tomahawk::peerinfo_ptr &peerInfo, const QList<SipInfo>& sipInfoList, Connection* conn );
|
||||
void connectToPeer(const Tomahawk::peerinfo_ptr &peerInfo, const QList<SipInfo>& sipInfos, Connection* conn );
|
||||
void reverseOfferRequest( ControlConnection* orig_conn, const QString &theirdbid, const QString& key, const QString& theirkey );
|
||||
|
||||
bool visibleExternally() const { return (!m_externalHostname.isNull()) || (m_externalAddresses.length() > 0); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user