Ticket #5178: libs_libmyth-ctor-need-no-scoping-operators.patch

File libs_libmyth-ctor-need-no-scoping-operators.patch, 920 bytes (added by Erik Hovland <erik@…>, 18 years ago)

class scoping fixes in libs/libmyth/

  • libs/libmyth/mythmediamonitor.cpp

    Applying scope to constructors when the scope is the class itself is
    
    From: Erik Hovland <erik@hovland.org>
    
    dangerous territory for the C++ standard. That scoping should be
    avoided. Use only the ctor itself like a function.
    ---
    
     libs/libmyth/mythmediamonitor.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmyth/mythmediamonitor.cpp b/libs/libmyth/mythmediamonitor.cpp
    index 2f1a70d..6fe8fd2 100644
    a b MediaMonitor::MediaMonitor(QObject* par, unsigned long interval,  
    270270    if (ignore.length())
    271271        m_IgnoreList = QStringList::split(',', ignore);
    272272    else
    273         m_IgnoreList = QStringList::QStringList();  // Force empty list
     273        m_IgnoreList = QStringList();  // Force empty list
    274274
    275275    if (m_StartThread)
    276276        VERBOSE(VB_MEDIA, "Creating MediaMonitor, SendEvents="