mirror of https://github.com/snes9xgit/snes9x.git
GTK: Add explicit operator= to binding
Silences a new warning in GCC 9. implicit operator= is now deprecated.
This commit is contained in:
parent
721abf510c
commit
1580c5f00f
|
@ -75,6 +75,12 @@ Binding::Binding (const Binding& binding)
|
|||
this->value = binding.value;
|
||||
}
|
||||
|
||||
Binding &Binding::operator=(const Binding &binding)
|
||||
{
|
||||
this->value = binding.value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool
|
||||
Binding::matches (Binding &binding)
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@ class Binding
|
|||
Binding (unsigned int key, bool ctrl, bool shift, bool alt);
|
||||
Binding (unsigned int device, unsigned int button, unsigned int threshold);
|
||||
Binding (const Binding &binding);
|
||||
Binding &operator=(const Binding &binding);
|
||||
Binding (GdkEventKey *event);
|
||||
Binding (unsigned int);
|
||||
Binding ();
|
||||
|
|
Loading…
Reference in New Issue