зеркало из https://github.com/mozilla/pjs.git
Bug 271824: do_GetFastLoadService should use nsGetServiceByCID. r=/sr=/a=bsmedberg
This commit is contained in:
Родитель
a9c77babea
Коммит
ef8c444de6
|
@ -83,9 +83,8 @@
|
|||
#include "jscntxt.h" // for JSVERSION_HAS_XML
|
||||
#include "nsCRT.h"
|
||||
|
||||
#include "nsIFastLoadService.h" // XXXbe temporary
|
||||
#include "nsIObjectInputStream.h" // XXXbe temporary
|
||||
#include "nsXULDocument.h" // XXXbe temporary
|
||||
#include "nsXULPrototypeDocument.h" // XXXbe temporary
|
||||
#include "nsICSSLoader.h"
|
||||
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsGkAtoms.h"
|
||||
|
|
|
@ -104,7 +104,6 @@
|
|||
#include "nsIXBLService.h"
|
||||
#include "nsCExternalHandlerService.h"
|
||||
#include "nsMimeTypes.h"
|
||||
#include "nsIFastLoadService.h"
|
||||
#include "nsIObjectInputStream.h"
|
||||
#include "nsIObjectOutputStream.h"
|
||||
#include "nsIFocusController.h"
|
||||
|
|
|
@ -79,8 +79,6 @@ class nsIXULPrototypeScript;
|
|||
struct JSObject;
|
||||
struct PRLogModuleInfo;
|
||||
|
||||
#include "nsIFastLoadService.h" // XXXbe temporary?
|
||||
|
||||
/**
|
||||
* The XUL document class
|
||||
*/
|
||||
|
|
|
@ -59,8 +59,6 @@
|
|||
#include "nsIPrincipal.h"
|
||||
#endif
|
||||
|
||||
class nsIFastLoadService;
|
||||
|
||||
/* 6bd13476-1dd2-11b2-bbef-f0ccb5fa64b6 (thanks, mozbot) */
|
||||
|
||||
#define MOZJSCOMPONENTLOADER_CID \
|
||||
|
|
|
@ -133,11 +133,17 @@ interface nsIFastLoadService : nsISupports
|
|||
# include "nsIServiceManager.h"
|
||||
#endif
|
||||
|
||||
inline const nsGetServiceByCIDWithError
|
||||
do_GetFastLoadService(nsresult *aResultCode = 0)
|
||||
inline const nsGetServiceByContractID
|
||||
do_GetFastLoadService()
|
||||
{
|
||||
static NS_DEFINE_CID(kFastLoadServiceCID, NS_FASTLOADSERVICE_CID);
|
||||
return nsGetServiceByCIDWithError(kFastLoadServiceCID, aResultCode);
|
||||
return nsGetServiceByContractID(NS_FASTLOADSERVICE_CONTRACTID);
|
||||
}
|
||||
|
||||
inline const nsGetServiceByContractIDWithError
|
||||
do_GetFastLoadService(nsresult *aResultCode)
|
||||
{
|
||||
return nsGetServiceByContractIDWithError(NS_FASTLOADSERVICE_CONTRACTID,
|
||||
aResultCode);
|
||||
}
|
||||
|
||||
inline nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче