diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-30 02:19:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-30 02:20:23 +0200 |
commit | 6832f91958e6c2cc44a8c4a4e126ea20b8c8d5a3 (patch) | |
tree | 4f08e1f31429e2e716fa618f550342287a091a0e /c/util.h | |
parent | 16ba8f3ae15363e921fca0e97f5c89cf12987b21 (diff) | |
download | EpisodeBrowser-6832f91958e6c2cc44a8c4a4e126ea20b8c8d5a3.tar.gz |
Fix Unique Good, Bad. Simplify HTML parser.
Good and Bad should obviously do the exact opposite thing
to what they did.
Diffstat (limited to 'c/util.h')
-rw-r--r-- | c/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,11 +72,11 @@ struct Unique } bool Good(T u) noexcept { - return ok = v == u; + return !(ok = v == u); } bool Bad(T u) noexcept { - return ok = v != u; + return !(ok = v != u); } ~Unique() { |