1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Add ASSERTs again

This commit is contained in:
Uwe L. Korn
2013-05-14 11:53:33 +02:00
parent 2839a000bd
commit 374e05c5ca

View File

@@ -120,6 +120,7 @@ SipInfo::setVisible( bool visible )
bool bool
SipInfo::isVisible() const SipInfo::isVisible() const
{ {
Q_ASSERT( isValid() );
return d->visible.toBool(); return d->visible.toBool();
} }
@@ -134,6 +135,7 @@ SipInfo::setHost( const QString& host )
const QString const QString
SipInfo::host() const SipInfo::host() const
{ {
Q_ASSERT( isValid() );
return d->host; return d->host;
} }
@@ -148,6 +150,7 @@ SipInfo::setPort( int port )
int int
SipInfo::port() const SipInfo::port() const
{ {
Q_ASSERT( isValid() );
return d->port; return d->port;
} }
@@ -162,6 +165,7 @@ SipInfo::setNodeId( const QString& nodeId )
const QString const QString
SipInfo::nodeId() const SipInfo::nodeId() const
{ {
Q_ASSERT( isValid() );
return d->nodeId; return d->nodeId;
} }
@@ -176,6 +180,7 @@ SipInfo::setKey( const QString& key )
const QString const QString
SipInfo::key() const SipInfo::key() const
{ {
Q_ASSERT( isValid() );
return d->key; return d->key;
} }