Ticket #5085: libs_libmyth_xmlparse.cpp-init-member-vars.patch

File libs_libmyth_xmlparse.cpp-init-member-vars.patch, 582 bytes (added by Erik Hovland <erik@…>, 12 years ago)

initialize XMLParse member vars

  • libs/libmyth/xmlparse.cpp

    hmult, usetrans and wmult are not initialized in the ctor.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmyth/xmlparse.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmyth/xmlparse.cpp b/libs/libmyth/xmlparse.cpp
    index ddee053..6d79a44 100644
    a b using namespace std; 
    1818
    1919MPUBLIC QMap<QString, fontProp> globalFontMap;
    2020
    21 XMLParse::XMLParse(void)
     21XMLParse::XMLParse(void) : wmult(0.0), hmult(0.0), usetrans(-1)
    2222{
    2323    allTypes = new vector<LayerSet *>;
    2424}