mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Issue #1925 - Change Side's operator++ from postfix to prefix.
The postfix operator++ was actually incorrectly implemented (the implementation is a prefix version). Since it's only used in the adjacent macro, there's no risk with this change to correct that.
This commit is contained in:
parent
8bf61a2f5c
commit
3a153f32e3
1 changed files with 2 additions and 2 deletions
|
|
@ -397,9 +397,9 @@ enum SideBits {
|
|||
for (mozilla::Side var_; \
|
||||
MOZ_CONCAT(var_,__LINE__) <= mozilla::eSideLeft && \
|
||||
((var_ = mozilla::Side(MOZ_CONCAT(var_,__LINE__))), true); \
|
||||
MOZ_CONCAT(var_,__LINE__)++)
|
||||
++MOZ_CONCAT(var_,__LINE__))
|
||||
|
||||
static inline Side operator++(Side& side, int) {
|
||||
static inline Side& operator++(Side& side) {
|
||||
MOZ_ASSERT(side >= eSideTop && side <= eSideLeft,
|
||||
"Out of range side");
|
||||
side = Side(side + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue