From 553c22541026bd44f8fbc7f4e186e60703f5ecb3 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 3 Jun 2018 19:48:48 +0900 Subject: csapi: No need to explicitly #include --- lib/csapi/create_room.h | 3 +-- lib/csapi/directory.h | 1 - lib/csapi/gtad.yaml | 2 +- lib/csapi/list_joined_rooms.h | 1 - lib/csapi/list_public_rooms.h | 1 - lib/csapi/search.h | 3 +-- lib/csapi/versions.h | 1 - 7 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/csapi/create_room.h b/lib/csapi/create_room.h index 995d5e73..f7b7e800 100644 --- a/lib/csapi/create_room.h +++ b/lib/csapi/create_room.h @@ -7,9 +7,8 @@ #include "jobs/basejob.h" #include -#include -#include #include "converters.h" +#include namespace QMatrixClient { diff --git a/lib/csapi/directory.h b/lib/csapi/directory.h index bf37170a..1e6b2f46 100644 --- a/lib/csapi/directory.h +++ b/lib/csapi/directory.h @@ -6,7 +6,6 @@ #include "jobs/basejob.h" -#include namespace QMatrixClient { diff --git a/lib/csapi/gtad.yaml b/lib/csapi/gtad.yaml index 2e3b3c51..fcf0ba25 100644 --- a/lib/csapi/gtad.yaml +++ b/lib/csapi/gtad.yaml @@ -70,7 +70,7 @@ analyzer: - /m\.room\.member$/: pass # This $ref is only used in an array, see below - //: *UseOmittable # Also apply "avoidCopy" to all other ref'ed types - array: - - string: { type: QStringList, imports: } + - string: QStringList - +set: { moveOnly: } +on: - /^Notification|Result$/: diff --git a/lib/csapi/list_joined_rooms.h b/lib/csapi/list_joined_rooms.h index 0a4a585f..2a030a54 100644 --- a/lib/csapi/list_joined_rooms.h +++ b/lib/csapi/list_joined_rooms.h @@ -6,7 +6,6 @@ #include "jobs/basejob.h" -#include namespace QMatrixClient { diff --git a/lib/csapi/list_public_rooms.h b/lib/csapi/list_public_rooms.h index 16278bd5..c12773aa 100644 --- a/lib/csapi/list_public_rooms.h +++ b/lib/csapi/list_public_rooms.h @@ -7,7 +7,6 @@ #include "jobs/basejob.h" #include -#include #include "converters.h" namespace QMatrixClient diff --git a/lib/csapi/search.h b/lib/csapi/search.h index 98a6315f..206bacca 100644 --- a/lib/csapi/search.h +++ b/lib/csapi/search.h @@ -8,9 +8,8 @@ #include #include -#include "events/event.h" #include -#include +#include "events/event.h" #include "converters.h" #include diff --git a/lib/csapi/versions.h b/lib/csapi/versions.h index ab00eaa8..9f1a4831 100644 --- a/lib/csapi/versions.h +++ b/lib/csapi/versions.h @@ -6,7 +6,6 @@ #include "jobs/basejob.h" -#include namespace QMatrixClient { -- cgit v1.2.3