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:
Nicholas Nethercote 2016-08-09 14:03:12 +10:00
Родитель 8f51d02c97
Коммит 4d2f91d5f5
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -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;