Bug 1392684 Remove const qualifier that gets discarded after function return in mscom::AgileReference
gcc throws a warning-as-error saying that the const qualifier will be ignored by function callers.
Remove the const qualifier to remove the warning.
MozReview-Commit-ID: JRQMz6Zdcdz
old mode 100644
new mode 100755
--- a/ipc/mscom/AgileReference.cpp
+++ b/ipc/mscom/AgileReference.cpp
@@ -130,17 +130,17 @@ AgileReference::Resolve(REFIID aIid, voi
return originalInterface->QueryInterface(aIid, aOutInterface);
}
IGlobalInterfaceTable*
AgileReference::ObtainGit()
{
// Internally to COM, the Global Interface Table is a singleton, therefore we
// don't worry about holding onto this reference indefinitely.
- static IGlobalInterfaceTable * const sGit = []() -> IGlobalInterfaceTable * const {
+ static IGlobalInterfaceTable* sGit = []() -> IGlobalInterfaceTable* {
IGlobalInterfaceTable* result = nullptr;
DebugOnly<HRESULT> hr =
::CoCreateInstance(CLSID_StdGlobalInterfaceTable, nullptr,
CLSCTX_INPROC_SERVER, IID_IGlobalInterfaceTable,
reinterpret_cast<void**>(&result));
MOZ_ASSERT(SUCCEEDED(hr));
return result;
}();