From dedb269d921c0992f84e592b80b791da4f2c5e35 Mon Sep 17 00:00:00 2001 From: Joseph Donofry <joedonofry@gmail.com> Date: Tue, 6 Aug 2019 08:16:58 -0400 Subject: [PATCH] Fix linting issues --- include/mtx/responses/common.hpp | 4 ++-- lib/structs/responses/common.cpp | 2 +- lib/structs/responses/notifications.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/mtx/responses/common.hpp b/include/mtx/responses/common.hpp index becc9831e..4358921c1 100644 --- a/include/mtx/responses/common.hpp +++ b/include/mtx/responses/common.hpp @@ -43,8 +43,8 @@ using TimelineEvents = std::vector<mtx::events::collections::TimelineEven using StateEvents = std::vector<mtx::events::collections::StateEvents>; using StrippedEvents = std::vector<mtx::events::collections::StrippedEvents>; -namespace states = mtx::events::state; -namespace msgs = mtx::events::msg; +namespace states = mtx::events::state; +namespace msgs = mtx::events::msg; struct TimelineEventVisitor : public boost::static_visitor<json> { diff --git a/lib/structs/responses/common.cpp b/lib/structs/responses/common.cpp index b5164f515..face18d3c 100644 --- a/lib/structs/responses/common.cpp +++ b/lib/structs/responses/common.cpp @@ -109,7 +109,7 @@ compose_timeline_events(json &events, const std::vector<mtx::events::collections::TimelineEvents> &container) { const auto c = container.at(0); - events = boost::apply_visitor(TimelineEventVisitor(), c); + events = boost::apply_visitor(TimelineEventVisitor(), c); } void diff --git a/lib/structs/responses/notifications.cpp b/lib/structs/responses/notifications.cpp index 5a132fe47..24bf779a6 100644 --- a/lib/structs/responses/notifications.cpp +++ b/lib/structs/responses/notifications.cpp @@ -38,9 +38,9 @@ void to_json(json &obj, const Notification &res) { obj["actions"] = res.actions; - obj["read"] = res.read; + obj["read"] = res.read; obj["room_id"] = res.room_id; - obj["ts"] = res.ts; + obj["ts"] = res.ts; // HACK to work around the fact that there isn't // a method to parse a timeline event from a json object. -- GitLab