diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-03 21:36:32 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-03 21:36:32 +0100 |
commit | 776d05bf98a5dd9e484d5a0e651c71fa95498689 (patch) | |
tree | d4aa161274e8fe8bcb0bc05ac1ba9fb7dfe6940f /lib/events/accountdataevents.h | |
parent | 0d212bdb7849d12582d906a03935cb6f51767e3b (diff) | |
download | libquotient-776d05bf98a5dd9e484d5a0e651c71fa95498689.tar.gz libquotient-776d05bf98a5dd9e484d5a0e651c71fa95498689.zip |
Cleanup; drop an unused RoomAliasesEvent constructor
Also, RoomAliasesEvent is to be completely gone after 0.7.
Diffstat (limited to 'lib/events/accountdataevents.h')
-rw-r--r-- | lib/events/accountdataevents.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h index e5101d20..9cf77be3 100644 --- a/lib/events/accountdataevents.h +++ b/lib/events/accountdataevents.h @@ -4,7 +4,6 @@ #pragma once #include "event.h" -#include "eventcontent.h" namespace Quotient { constexpr const char* FavouriteTag = "m.favourite"; @@ -16,12 +15,12 @@ struct TagRecord { order_type order; - TagRecord(order_type order = none) : order(std::move(order)) {} + TagRecord(order_type order = none) : order(order) {} bool operator<(const TagRecord& other) const { // Per The Spec, rooms with no order should be after those with order, - // against optional<>::operator<() convention. + // against std::optional<>::operator<() convention. return order && (!other.order || *order < *other.order); } }; |