aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-10-31 12:48:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-11-01 08:43:10 +0900
commitedbbc2bc77599ead0e14bc08cdddda10d1c5f305 (patch)
tree4bb8be8e6ee370d943516c9ba197fb12c8377ea8 /lib/room.cpp
parent60bb1cf942ad0815dcf42cbfe8acd1e076d848cf (diff)
downloadlibquotient-edbbc2bc77599ead0e14bc08cdddda10d1c5f305.tar.gz
libquotient-edbbc2bc77599ead0e14bc08cdddda10d1c5f305.zip
Omittable: get rid of value()
Xcode 10 doesn't have it, and value() is not quite fitting mostly-exceptionless Quotient anyway.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index b34c36ea..0806e30d 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1208,7 +1208,7 @@ int Room::invitedCount() const
{
// TODO: Store invited users in Room too
Q_ASSERT(d->summary.invitedMemberCount.has_value());
- return d->summary.invitedMemberCount.value();
+ return d->summary.invitedMemberCount.value_or(0);
}
int Room::totalMemberCount() const { return joinedCount() + invitedCount(); }