Bug 826158 - Fix two -Wself-assign warnings in widget/gtk2/. r=karlt.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
||||
*/
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim: set ts=4 et sw=4 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
||||
*/
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim: set ts=4 et sw=4 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
||||
*/
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim: set ts=4 et sw=4 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
@@ -295,13 +294,13 @@ nsGtkIMModule::PrepareToDestroyContext(GtkIMContext *aContext)
|
||||
static gpointer gtk_xim_context_class =
|
||||
g_type_class_ref(slaveType);
|
||||
// Mute unused variable warning:
|
||||
gtk_xim_context_class = gtk_xim_context_class;
|
||||
(void)gtk_xim_context_class;
|
||||
} else if (strcmp(im_type_name, "GtkIMContextIIIM") == 0) {
|
||||
// Add a reference to prevent the IIIM module from being unloaded
|
||||
static gpointer gtk_iiim_context_class =
|
||||
g_type_class_ref(slaveType);
|
||||
// Mute unused variable warning:
|
||||
gtk_iiim_context_class = gtk_iiim_context_class;
|
||||
(void)gtk_iiim_context_class;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user