summaryrefslogtreecommitdiffstats
path: root/src/client/util/room.h
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-30 20:34:23 +0100
committerSimon Rettberg2022-10-30 20:34:23 +0100
commit9f479b8f76238a03bce5d13aee14efd34e659c6e (patch)
treee320d32838202ac4604032da7a4bc3702cc304da /src/client/util/room.h
parentUpdate translation files (diff)
downloadpvs2-9f479b8f76238a03bce5d13aee14efd34e659c6e.tar.gz
pvs2-9f479b8f76238a03bce5d13aee14efd34e659c6e.tar.xz
pvs2-9f479b8f76238a03bce5d13aee14efd34e659c6e.zip
Clean up and modernize code
- static "new-style" signal->slot connections - Fix a lot of things Clang-Tidy complained about - Move includes to .cpp files and use forward decls in .h - Don't use <QtWidgets> and <QtCore>, but specific includes instead
Diffstat (limited to 'src/client/util/room.h')
-rw-r--r--src/client/util/room.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/room.h b/src/client/util/room.h
index 86939f7..46f8c02 100644
--- a/src/client/util/room.h
+++ b/src/client/util/room.h
@@ -1,11 +1,13 @@
#ifndef ROOM_H
#define ROOM_H
+#include <QDebug>
+
struct Room {
QString mgr;
QString name;
int priority;
- Room (QString _name, QString _mgr, int _priority)
+ Room (const QString &_name, const QString &_mgr, int _priority)
{
mgr = _mgr;
name = _name;
@@ -13,7 +15,7 @@ struct Room {
};
};
-inline QDebug operator<<(QDebug debug, const Room& r)
+inline QDebug& operator<<(QDebug& debug, const Room& r)
{
debug << r.name << "{mgr=" << r.mgr << ",prio=" << r.priority << "}";
return debug;