Commit 7fbe765a authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/skins2/parser/skin_parser.cpp: fixed bug I just introduced.

parent 906b68fe
...@@ -35,7 +35,7 @@ SkinParser::SkinParser( intf_thread_t *pIntf, const string &rFileName, ...@@ -35,7 +35,7 @@ SkinParser::SkinParser( intf_thread_t *pIntf, const string &rFileName,
void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr ) void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
{ {
#define CheckDefault( a, b ) \ #define CheckDefault( a, b ) \
if( attr.find(a) == attr.end() ) attr[a] = strdup(b); if( attr.find(a) == attr.end() ) attr[strdup(a)] = strdup(b);
#define RequireDefault( a ) \ #define RequireDefault( a ) \
if( attr.find(a) == attr.end() ) \ if( attr.find(a) == attr.end() ) \
{ \ { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment