Fix for bug 75534 (transformiix doesn't compile). Code by Pike, r=me, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@92087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%netscape.com
2001-04-12 10:13:59 +00:00
parent 7f1013281e
commit 1968dc715c
5 changed files with 27 additions and 21 deletions

View File

@@ -34,13 +34,17 @@
* -- Removed a number of castings of XML_Char to DOM_CHAR since they
* were not working on Windows properly
*
* $Id: XMLParser.cpp,v 1.14 2001-03-06 00:12:18 Peter.VanderBeken%pandora.be Exp $
* $Id: XMLParser.cpp,v 1.15 2001-04-12 10:13:07 peterv%netscape.com Exp $
*/
#include "XMLParser.h"
#ifdef MOZ_XSL
#include "nsSyncLoader.h"
#include "URIUtils.h"
#include "nsIIOService.h"
#include "nsIURL.h"
#include "nsNetCID.h"
#include "nsIServiceManager.h"
#endif
/**
* Implementation of an In-Memory DOM based XML parser. The actual XML
@@ -86,7 +90,8 @@ Document* XMLParser::getDocumentFromURI
#ifdef MOZ_XSL
nsresult rv = NS_OK;
nsCOMPtr<nsIURI> documentURI;
NS_WITH_SERVICE(nsIIOService, pService, kIOServiceCID, &rv);
nsCOMPtr<nsIIOService> pService(do_GetService(NS_IOSERVICE_CONTRACTID,
&rv));
if (NS_FAILED(rv)) return NULL;
char *hrefStr = (documentURL.getConstNSString()).ToNewCString();