Ticket #5079: libs_libmyth_uitypes.cpp-init-m_order.patch

File libs_libmyth_uitypes.cpp-init-m_order.patch, 820 bytes (added by Erik Hovland <erik@…>, 12 years ago)
  • libs/libmyth/uitypes.cpp

    m_order in the LayerSet class is not initialized while everything else is.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmyth/uitypes.cpp |   13 +++++++------
     1 files changed, 7 insertions(+), 6 deletions(-)
    
    diff --git a/libs/libmyth/uitypes.cpp b/libs/libmyth/uitypes.cpp
    index 13f456e..a0c6ec1 100644
    a b using namespace std; 
    2323#undef LoadImage
    2424#endif
    2525
    26 LayerSet::LayerSet(const QString &name)
     26LayerSet::LayerSet(const QString &name) :
     27    m_debug(false),
     28    m_context(-1),
     29    m_order(-1),
     30    m_name(name),
     31    numb_layers(-1),
     32    allTypes(new vector<UIType *>)
    2733{
    28     m_name = name;
    29     m_context = -1;
    30     m_debug = false;
    31     numb_layers = -1;
    32     allTypes = new vector<UIType *>;
    3334}
    3435
    3536LayerSet::~LayerSet()