author | simon <simon> | 2003-04-20 10:19:39 (UTC) |
---|---|---|
committer | simon <simon> | 2003-04-20 10:19:39 (UTC) |
commit | b2583563a61e1ac1d9207fb3c008443a5fc7dc3c (patch) (side-by-side diff) | |
tree | bd9543d81221f036aceed53e666ae1a43e26eb84 | |
parent | e24ed721e823232876a266cd78cd7341675b4378 (diff) | |
download | opie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.zip opie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.tar.gz opie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.tar.bz2 |
- removed those:
-#ifdef QT_NO_DEBUG
-inline
-#endif
<some method here not marked inline in the header file>
it makes little sense to inline a method in the .cpp file for non-debug
builds, apart from that it causes the method not to be emitted for
non-debug builds, causing undefined references in apps referencing them
-rw-r--r-- | libopie2/opienet/onetutils.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libopie2/opienet/onetutils.cpp b/libopie2/opienet/onetutils.cpp index 236f108..e05efc2 100644 --- a/libopie2/opienet/onetutils.cpp +++ b/libopie2/opienet/onetutils.cpp @@ -109,113 +109,101 @@ OMacAddress OMacAddress::fromString( const QString& str ) return (const unsigned char*) &buf; } QString OMacAddress::toString( bool substitute ) const { QString manu; manu.sprintf( "%.2X:%.2X:%.2X", _bytes[0]&0xff, _bytes[1]&0xff, _bytes[2]&0xff ); QString serial; serial.sprintf( ":%.2X:%.2X:%.2X", _bytes[3]&0xff, _bytes[4]&0xff, _bytes[5]&0xff ); if ( !substitute ) return manu+serial; // fallback - if no vendor is found, just use the number QString textmanu = OManufacturerDB::instance()->lookup( manu ); return textmanu.isNull() ? manu+serial : textmanu + serial; } QString OMacAddress::manufacturer() const { return OManufacturerDB::instance()->lookup( toString() ); } bool operator==( const OMacAddress &m1, const OMacAddress &m2 ) { return memcmp( &m1._bytes, &m2._bytes, 6 ) == 0; } /*====================================================================================== * OHostAddress *======================================================================================*/ /*====================================================================================== * OPrivateIOCTL *======================================================================================*/ OPrivateIOCTL::OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs ) :QObject( parent, name ), _ioctl( cmd ), _getargs( getargs ), _setargs( setargs ) { } OPrivateIOCTL::~OPrivateIOCTL() { } -#ifdef QT_NO_DEBUG -inline -#endif int OPrivateIOCTL::numberGetArgs() const { return _getargs & IW_PRIV_SIZE_MASK; } -#ifdef QT_NO_DEBUG -inline -#endif int OPrivateIOCTL::typeGetArgs() const { return _getargs & IW_PRIV_TYPE_MASK >> 12; } -#ifdef QT_NO_DEBUG -inline -#endif int OPrivateIOCTL::numberSetArgs() const { return _setargs & IW_PRIV_SIZE_MASK; } -#ifdef QT_NO_DEBUG -inline -#endif int OPrivateIOCTL::typeSetArgs() const { return _setargs & IW_PRIV_TYPE_MASK >> 12; } void OPrivateIOCTL::invoke() const { ( (OWirelessNetworkInterface*) parent() )->wioctl( _ioctl ); } void OPrivateIOCTL::setParameter( int num, u_int32_t value ) { u_int32_t* arglist = (u_int32_t*) &( (OWirelessNetworkInterface*) parent() )->_iwr.u.name; arglist[num] = value; } /*====================================================================================== * assorted functions *======================================================================================*/ void dumpBytes( const unsigned char* data, int num ) { printf( "Dumping %d bytes @ %0x", num, data ); printf( "-------------------------------------------\n" ); for ( int i = 0; i < num; ++i ) { printf( "%02x ", data[i] ); if ( !((i+1) % 32) ) printf( "\n" ); } printf( "\n\n" ); } |