Skip to content

Commit d0293ed

Browse files
committed
Bug 1392684 Remove const qualifier that gets discarded after function return in mscom::AgileReference r=aklotz
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 --HG-- extra : rebase_source : 687a7b310270823180b848d6c65cba7ba688b2ae
1 parent 464faf3 commit d0293ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipc/mscom/AgileReference.cpp

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ AgileReference::ObtainGit()
135135
{
136136
// Internally to COM, the Global Interface Table is a singleton, therefore we
137137
// don't worry about holding onto this reference indefinitely.
138-
static IGlobalInterfaceTable * const sGit = []() -> IGlobalInterfaceTable * const {
138+
static IGlobalInterfaceTable* sGit = []() -> IGlobalInterfaceTable* {
139139
IGlobalInterfaceTable* result = nullptr;
140140
DebugOnly<HRESULT> hr =
141141
::CoCreateInstance(CLSID_StdGlobalInterfaceTable, nullptr,

0 commit comments

Comments
 (0)