summaryrefslogtreecommitdiff
path: root/src/serverinfo.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/serverinfo.h
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/serverinfo.h')
-rw-r--r--src/serverinfo.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/serverinfo.h b/src/serverinfo.h
index 0bec89cc..00b47643 100644
--- a/src/serverinfo.h
+++ b/src/serverinfo.h
@@ -1,9 +1,9 @@
#ifndef SERVERINFO_H
#define SERVERINFO_H
-#include <QString>
#include <QDate>
#include <QMetaType>
+#include <QString>
class ServerInfo
{
@@ -11,9 +11,8 @@ public:
using SpeedList = std::vector<int>;
ServerInfo();
- ServerInfo(
- QString name, bool premium, QDate lastSeen, int preferred,
- SpeedList lastDownloads);
+ ServerInfo(QString name, bool premium, QDate lastSeen, int preferred,
+ SpeedList lastDownloads);
const QString& name() const;
@@ -40,12 +39,11 @@ private:
Q_DECLARE_METATYPE(ServerInfo)
-
class ServerList
{
public:
- using container = std::vector<ServerInfo>;
- using iterator = container::iterator;
+ using container = std::vector<ServerInfo>;
+ using iterator = container::iterator;
using const_iterator = container::const_iterator;
void add(ServerInfo s);
@@ -67,4 +65,4 @@ private:
container m_servers;
};
-#endif // SERVERINFO_H
+#endif // SERVERINFO_H