Fix Transformiix standalone bustage. r=Pike. Doesn't affect default builds.

This commit is contained in:
peterv%propagandism.org 2005-11-02 07:42:35 +00:00
Родитель 80d85b7c05
Коммит e0f6ad84a1
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -46,7 +46,8 @@
#include "nsISyncLoadDOMService.h" #include "nsISyncLoadDOMService.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#else #else
#include "xmlparse.h" #include "expat_config.h"
#include "expat.h"
#endif #endif
#ifdef TX_EXE #ifdef TX_EXE
@ -220,8 +221,8 @@ externalEntityRefHandler(XML_Parser aParser,
// aParser is aUserData is the txXMLParser, // aParser is aUserData is the txXMLParser,
// we set that in txXMLParser::parse // we set that in txXMLParser::parse
NS_ENSURE_TRUE(aParser, XML_ERROR_NONE); NS_ENSURE_TRUE(aParser, XML_ERROR_NONE);
return TX_XMLPARSER(aParser)->ExternalEntityRef(aContext, aBase, return ((txXMLParser*)aParser)->ExternalEntityRef(aContext, aBase,
aSystemId, aPublicId); aSystemId, aPublicId);
} }

Просмотреть файл

@ -40,7 +40,8 @@
#include "TxLog.h" #include "TxLog.h"
#include "txStylesheetCompiler.h" #include "txStylesheetCompiler.h"
#include "txURIUtils.h" #include "txURIUtils.h"
#include "xmlparse.h" #include "expat_config.h"
#include "expat.h"
/** /**
* Implementation of an In-Memory DOM based XML parser. The actual XML * Implementation of an In-Memory DOM based XML parser. The actual XML
@ -157,8 +158,8 @@ externalEntityRefHandler(XML_Parser aParser,
// aParser is aUserData is the txDriver, // aParser is aUserData is the txDriver,
// we set that in txDriver::parse // we set that in txDriver::parse
NS_ENSURE_TRUE(aParser, XML_ERROR_NONE); NS_ENSURE_TRUE(aParser, XML_ERROR_NONE);
return TX_DRIVER(aParser)->ExternalEntityRef(aContext, aBase, return ((txDriver*)aParser)->ExternalEntityRef(aContext, aBase,
aSystemId, aPublicId); aSystemId, aPublicId);
} }