Ticket #5781: libs_libmythupnp-krazy2-TRUE-FALSE.patch

File libs_libmythupnp-krazy2-TRUE-FALSE.patch, 8.6 KB (added by Erik Hovland <erik@…>, 16 years ago)

Replaces TRUE/FALSE with true/false

  • mythtv/libs/libmythupnp/bufferedsocketdevice.cpp

    TRUE and FALSE have been deprecated.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythupnp/bufferedsocketdevice.cpp |   18 +++++++++---------
     mythtv/libs/libmythupnp/configuration.cpp        |    4 ++--
     mythtv/libs/libmythupnp/configuration.h          |    4 ++--
     mythtv/libs/libmythupnp/eventing.h               |    6 +++---
     mythtv/libs/libmythupnp/threadpool.cpp           |    2 +-
     mythtv/libs/libmythupnp/threadpool.h             |    2 +-
     mythtv/libs/libmythupnp/upnp.h                   |    2 +-
     mythtv/libs/libmythupnp/upnpdevice.h             |    8 ++++----
     8 files changed, 23 insertions(+), 23 deletions(-)
    
    diff --git a/mythtv/libs/libmythupnp/bufferedsocketdevice.cpp b/mythtv/libs/libmythupnp/bufferedsocketdevice.cpp
    index 8007f08..2277e72 100644
    a b int BufferedSocketDevice::ReadBytes() 
    214214bool BufferedSocketDevice::ConsumeWriteBuf( qulonglong nbytes )
    215215{
    216216    if ( !nbytes || ((qlonglong)nbytes > m_nWriteSize) )
    217         return FALSE;
     217        return false;
    218218
    219219    m_nWriteSize -= nbytes;
    220220
    bool BufferedSocketDevice::ConsumeWriteBuf( qulonglong nbytes ) 
    240240        }
    241241    }
    242242
    243     return TRUE;
     243    return true;
    244244}
    245245
    246246/////////////////////////////////////////////////////////////////////////////
    void BufferedSocketDevice::Flush() 
    253253    if ((m_pSocket == NULL) || !m_pSocket->isValid())
    254254        return;
    255255
    256     bool osBufferFull = FALSE;
     256    bool osBufferFull = false;
    257257    int  consumed     = 0;
    258258
    259259    while ( !osBufferFull && ( m_nWriteSize > 0 ) && m_pSocket->isValid())
    void BufferedSocketDevice::Flush() 
    306306        }
    307307
    308308        if ( nwritten < i )
    309             osBufferFull = TRUE;
     309            osBufferFull = true;
    310310    }
    311311}
    312312
    bool BufferedSocketDevice::At( qlonglong index ) 
    338338    ReadBytes();
    339339
    340340    if ( index > m_bufRead.size() )
    341         return FALSE;
     341        return false;
    342342
    343343    // throw away data 0..index-1
    344344    m_bufRead.consumeBytes( (qulonglong)index, 0 );
    345345
    346     return TRUE;
     346    return true;
    347347}
    348348
    349349/////////////////////////////////////////////////////////////////////////////
    bool BufferedSocketDevice::At( qlonglong index ) 
    353353bool BufferedSocketDevice::AtEnd()
    354354{
    355355    if ( !m_pSocket->isValid() )
    356         return TRUE;
     356        return true;
    357357
    358358    ReadBytes();
    359359
    bool BufferedSocketDevice::CanReadLine() 
    590590    ReadBytes();
    591591
    592592    if (( BytesAvailable() > 0 ) && m_bufRead.scanNewline( 0 ) )
    593         return TRUE;
     593        return true;
    594594
    595     return FALSE;
     595    return false;
    596596}
    597597                               
    598598/////////////////////////////////////////////////////////////////////////////
  • mythtv/libs/libmythupnp/configuration.cpp

    diff --git a/mythtv/libs/libmythupnp/configuration.cpp b/mythtv/libs/libmythupnp/configuration.cpp
    index 3f15c5b..aac8e71 100644
    a b QString XmlConfiguration::GetValue( const QString &sSetting, QString sDefault ) 
    210210void XmlConfiguration::SetValue( const QString &sSetting, int nValue )
    211211{
    212212    QString  sValue = QString::number( nValue );
    213     QDomNode node   = FindNode( sSetting, TRUE );
     213    QDomNode node   = FindNode( sSetting, true );
    214214
    215215    if (!node.isNull())
    216216    {
    void XmlConfiguration::SetValue( const QString &sSetting, int nValue ) 
    236236
    237237void XmlConfiguration::SetValue( const QString &sSetting, QString sValue )
    238238{
    239     QDomNode node   = FindNode( sSetting, TRUE );
     239    QDomNode node   = FindNode( sSetting, true );
    240240
    241241    if (!node.isNull())
    242242    {
  • mythtv/libs/libmythupnp/configuration.h

    diff --git a/mythtv/libs/libmythupnp/configuration.h b/mythtv/libs/libmythupnp/configuration.h
    index b56cb02..8b22562 100644
    a b class XmlConfiguration : public Configuration 
    5252        QDomDocument m_config;
    5353        QDomNode     m_rootNode;
    5454
    55         QDomNode FindNode( const QString &sName, bool bCreate = FALSE );
    56         QDomNode FindNode( QStringList &sParts, QDomNode &curNode, bool bCreate = FALSE );
     55        QDomNode FindNode( const QString &sName, bool bCreate = false );
     56        QDomNode FindNode( QStringList &sParts, QDomNode &curNode, bool bCreate = false );
    5757
    5858    public:
    5959
  • mythtv/libs/libmythupnp/eventing.h

    diff --git a/mythtv/libs/libmythupnp/eventing.h b/mythtv/libs/libmythupnp/eventing.h
    index a3e6685..41228f3 100644
    a b class StateVariableBase 
    101101
    102102    public:
    103103
    104         StateVariableBase( const QString &sName, bool bNotify = FALSE )
     104        StateVariableBase( const QString &sName, bool bNotify = false )
    105105        {
    106106            m_bNotify = bNotify;
    107107            m_sName   = sName;
    class StateVariable : public StateVariableBase 
    124124
    125125        // ------------------------------------------------------------------
    126126
    127         StateVariable( const QString &sName, bool bNotify = FALSE )
     127        StateVariable( const QString &sName, bool bNotify = false )
    128128            : StateVariableBase( sName, bNotify ), m_value( T( ) )
    129129        {
    130130        }
    131131
    132132        // ------------------------------------------------------------------
    133133
    134         StateVariable( const QString &sName, T value, bool bNotify = FALSE )
     134        StateVariable( const QString &sName, T value, bool bNotify = false )
    135135            : StateVariableBase( sName, bNotify ), m_value(value)
    136136        {
    137137        }
  • mythtv/libs/libmythupnp/threadpool.cpp

    diff --git a/mythtv/libs/libmythupnp/threadpool.cpp b/mythtv/libs/libmythupnp/threadpool.cpp
    index 5e2fc47..a72b949 100644
    a b using namespace std; 
    2727//
    2828/////////////////////////////////////////////////////////////////////////////
    2929
    30 CEvent::CEvent( bool bInitiallyOwn /*= FALSE */ )
     30CEvent::CEvent( bool bInitiallyOwn /*= false */ )
    3131{
    3232    m_bSignaled = bInitiallyOwn;
    3333}
  • mythtv/libs/libmythupnp/threadpool.h

    diff --git a/mythtv/libs/libmythupnp/threadpool.h b/mythtv/libs/libmythupnp/threadpool.h
    index a3da313..e0cf1f2 100644
    a b class CEvent 
    3939
    4040    public:
    4141
    42                   CEvent( bool bInitiallyOwn = FALSE );
     42                  CEvent( bool bInitiallyOwn = false );
    4343         virtual ~CEvent();
    4444
    4545        bool      SetEvent    ();
  • mythtv/libs/libmythupnp/upnp.h

    diff --git a/mythtv/libs/libmythupnp/upnp.h b/mythtv/libs/libmythupnp/upnp.h
    index c81d040..70fa1bc 100644
    a b class UPnp 
    137137        static SSDPCacheEntries *Find( const QString &sURI );
    138138        static DeviceLocation   *Find( const QString &sURI, const QString &sUSN );
    139139
    140         static UPnpDeviceDesc *GetDeviceDesc( QString &sURL, bool bInQtThread = TRUE);
     140        static UPnpDeviceDesc *GetDeviceDesc( QString &sURL, bool bInQtThread = true);
    141141
    142142        static QString         GetResultDesc( UPnPResultCode eCode );
    143143        static void            FormatErrorResponse( HTTPRequest   *pRequest,
  • mythtv/libs/libmythupnp/upnpdevice.h

    diff --git a/mythtv/libs/libmythupnp/upnpdevice.h b/mythtv/libs/libmythupnp/upnpdevice.h
    index 7b32cc1..0eb5005 100644
    a b class UPnpDeviceDesc 
    181181        UPnpDevice *FindDevice( const QString &sURI );
    182182
    183183        static UPnpDevice     *FindDevice( UPnpDevice *pDevice, const QString &sURI );
    184         static UPnpDeviceDesc *Retrieve  ( QString &sURL, bool bInQtThread = TRUE   );
     184        static UPnpDeviceDesc *Retrieve  ( QString &sURL, bool bInQtThread = true   );
    185185
    186186};
    187187
    class DeviceLocation : public RefCounted 
    249249
    250250        // ==================================================================
    251251
    252         UPnpDeviceDesc *GetDeviceDesc( bool bInQtThread = TRUE )
     252        UPnpDeviceDesc *GetDeviceDesc( bool bInQtThread = true )
    253253        {
    254254            if (m_pDeviceDesc == NULL)
    255255                m_pDeviceDesc = UPnpDeviceDesc::Retrieve( m_sLocation, bInQtThread );
    class DeviceLocation : public RefCounted 
    259259
    260260        // ==================================================================
    261261
    262         QString GetFriendlyName( bool bInQtThread = TRUE )
     262        QString GetFriendlyName( bool bInQtThread = true )
    263263        {
    264264            UPnpDeviceDesc *pDevice = GetDeviceDesc( bInQtThread );
    265265
    class DeviceLocation : public RefCounted 
    274274            return sName;
    275275        }
    276276
    277         QString GetNameAndDetails( bool bInQtThread = TRUE )
     277        QString GetNameAndDetails( bool bInQtThread = true )
    278278        {
    279279            UPnpDeviceDesc *pDevice = GetDeviceDesc( bInQtThread );
    280280