Ticket #5106: libs_libmythtv_eithelper.h-init-ATSCEvent.patch

File libs_libmythtv_eithelper.h-init-ATSCEvent.patch, 758 bytes (added by Erik Hovland <erik@…>, 12 years ago)

init ATSCEvent member vars in default ctor

  • libs/libmythtv/eithelper.h

    The default ctor does not initialize anything.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/eithelper.h |    5 ++++-
     1 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/eithelper.h b/libs/libmythtv/eithelper.h
    index 00b09c4..7bfc326 100644
    a b class MSqlQuery; 
    1818class ATSCEvent
    1919{
    2020  public:
    21     ATSCEvent() {}
     21    ATSCEvent()
     22        : start_time(0),    length(0),
     23          etm(0),           desc_length(0),
     24          title("unknown"), desc(NULL) {}
    2225    ATSCEvent(uint a, uint b, uint c, QString d,
    2326              const unsigned char *e, uint f)
    2427        : start_time(a), length(b), etm(c), desc_length(f), title(d), desc(e)