зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1293117 (part 6) - Fix a comment and return type in XPCComponents.cpp. r=froydnj.
The comment is wrong. NS_METHOD is the appropriate thing to use here. --HG-- extra : rebase_source : 68ada96c01f7941d5266298356ba5f493bcda67c
This commit is contained in:
Родитель
8f51d02c97
Коммит
4d2f91d5f5
|
@ -3503,10 +3503,9 @@ public:
|
|||
// having one.
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_NSIXPCSCRIPTABLE
|
||||
// The NS_IMETHODIMP isn't really accurate here, but NS_CALLBACK requires
|
||||
// the referent to be declared __stdcall on Windows, and this is the only
|
||||
// macro that does that.
|
||||
static NS_IMETHODIMP Get(nsIXPCScriptable** helper)
|
||||
// This is NS_METHOD because NS_CALLBACK requires the referent to be
|
||||
// declared __stdcall on Windows, and NS_METHOD does that.
|
||||
static NS_METHOD Get(nsIXPCScriptable** helper)
|
||||
{
|
||||
*helper = &singleton;
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче