BitField: Make trivially copyable and remove assignment operator
This commit is contained in:
parent
f1d1049c4f
commit
6c71858c5c
12 changed files with 56 additions and 60 deletions
|
@ -178,17 +178,17 @@ struct CTRPollFD {
|
|||
static Events TranslateTo3DS(u32 input_event) {
|
||||
Events ev = {};
|
||||
if (input_event & POLLIN)
|
||||
ev.pollin = 1;
|
||||
ev.pollin.Assign(1);
|
||||
if (input_event & POLLPRI)
|
||||
ev.pollpri = 1;
|
||||
ev.pollpri.Assign(1);
|
||||
if (input_event & POLLHUP)
|
||||
ev.pollhup = 1;
|
||||
ev.pollhup.Assign(1);
|
||||
if (input_event & POLLERR)
|
||||
ev.pollerr = 1;
|
||||
ev.pollerr.Assign(1);
|
||||
if (input_event & POLLOUT)
|
||||
ev.pollout = 1;
|
||||
ev.pollout.Assign(1);
|
||||
if (input_event & POLLNVAL)
|
||||
ev.pollnval = 1;
|
||||
ev.pollnval.Assign(1);
|
||||
return ev;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue