Ticket #5673: libs_libmythupnp-uninit.patch

File libs_libmythupnp-uninit.patch, 1.3 KB (added by anonymous, 11 years ago)

adds member initialization to Eventing

  • mythtv/libs/libmythupnp/eventing.cpp

    Attempts to fix defects associated to member
    
    From: Erik Hovland <erik@hovland.org>
    
    variable initialization in the ctors of classes.
    ---
    
     mythtv/libs/libmythupnp/eventing.cpp |   10 +++++++---
     1 files changed, 7 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/libs/libmythupnp/eventing.cpp b/mythtv/libs/libmythupnp/eventing.cpp
    index 300640c..ece91ab 100644
    a b uint StateVariables::BuildNotifyBody( 
    5454//
    5555/////////////////////////////////////////////////////////////////////////////
    5656
    57 Eventing::Eventing( const QString &sExtensionName, const QString &sEventMethodName ) : HttpServerExtension( sExtensionName )
     57Eventing::Eventing( const QString &sExtensionName,
     58                    const QString &sEventMethodName )
     59    : HttpServerExtension( sExtensionName ),
     60      m_sEventMethodName( sEventMethodName ), m_nHoldCount( 0 ),
     61      m_pInitializeSubscriber( NULL )
    5862{
    59     m_sEventMethodName      = sEventMethodName;
    60     m_nSubscriptionDuration = UPnp::g_pConfig->GetValue( "UPnP/SubscriptionDuration", 1800 );
     63    m_nSubscriptionDuration =
     64        UPnp::g_pConfig->GetValue( "UPnP/SubscriptionDuration", 1800 );
    6165}
    6266
    6367/////////////////////////////////////////////////////////////////////////////