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

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

@ -40,7 +40,8 @@
#include "TxLog.h"
#include "txStylesheetCompiler.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
@ -157,8 +158,8 @@ externalEntityRefHandler(XML_Parser aParser,
// aParser is aUserData is the txDriver,
// we set that in txDriver::parse
NS_ENSURE_TRUE(aParser, XML_ERROR_NONE);
return TX_DRIVER(aParser)->ExternalEntityRef(aContext, aBase,
aSystemId, aPublicId);
return ((txDriver*)aParser)->ExternalEntityRef(aContext, aBase,
aSystemId, aPublicId);
}