aboutsummaryrefslogtreecommitdiff
path: root/c/util.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-30 02:19:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-30 02:20:23 +0200
commit6832f91958e6c2cc44a8c4a4e126ea20b8c8d5a3 (patch)
tree4f08e1f31429e2e716fa618f550342287a091a0e /c/util.h
parent16ba8f3ae15363e921fca0e97f5c89cf12987b21 (diff)
downloadEpisodeBrowser-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/util.h b/c/util.h
index f9e3057..7ed7636 100644
--- a/c/util.h
+++ b/c/util.h
@@ -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()
{