Ticket #5699: mythnews-uninit.patch

File mythnews-uninit.patch, 1.1 KB (added by Erik Hovland <erik@…>, 11 years ago)

initialize member vars in ctors

  • mythplugins/mythnews/mythnews/mythnewsconfig.cpp

    Fixes initialization in ctor defects
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythplugins/mythnews/mythnews/mythnewsconfig.cpp |   12 +++++-------
     1 files changed, 5 insertions(+), 7 deletions(-)
    
    diff --git a/mythplugins/mythnews/mythnews/mythnewsconfig.cpp b/mythplugins/mythnews/mythnews/mythnewsconfig.cpp
    index b4402d9..661ec22 100644
    a b public: 
    3838// ---------------------------------------------------
    3939
    4040MythNewsConfig::MythNewsConfig(MythScreenStack *parent, const char *name)
    41     : MythScreenType(parent, name)
     41    : MythScreenType(parent, name),
     42      m_priv(new MythNewsConfigPriv), m_categoriesList(NULL),
     43      m_siteList(NULL),               m_helpText(NULL),
     44      m_contextText(NULL),            //m_SpinBox(NULL),
     45      m_updateFreq(gContext->GetNumSetting("NewsUpdateFrequency", 30))
    4246{
    43     m_priv            = new MythNewsConfigPriv;
    44     m_updateFreq      = gContext->GetNumSetting("NewsUpdateFrequency", 30);
    45 
    46 //    m_SpinBox = NULL;
    47     m_siteList = m_categoriesList = NULL;
    48 
    4947    populateSites();
    5048}
    5149