aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/Mode.h
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-27 18:36:11 -0300
committerflow <thiagodonato300@gmail.com>2022-05-12 18:11:55 -0300
commit040ee919e5ea71364daa08c30e09c843976f5734 (patch)
treec65db37c7aa199592135020d3114aa808415764c /launcher/net/Mode.h
parentefa3fbff39bf0dabebdf1c6330090ee320895a4d (diff)
downloadPrismLauncher-040ee919e5ea71364daa08c30e09c843976f5734.tar.gz
PrismLauncher-040ee919e5ea71364daa08c30e09c843976f5734.tar.bz2
PrismLauncher-040ee919e5ea71364daa08c30e09c843976f5734.zip
refactor: more net cleanup
This runs clang-tidy on some other files in launcher/net/. This also makes use of some JSON wrappers in HttpMetaCache, instead of using the Qt stuff directly. Lastly, this removes useless null checks (crashes don't occur because of this, but because of concurrent usage / free of the QByteArray pointer), and fix a fixme in Download.h
Diffstat (limited to 'launcher/net/Mode.h')
-rw-r--r--launcher/net/Mode.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/launcher/net/Mode.h b/launcher/net/Mode.h
index 9a95f5ad..3d75981f 100644
--- a/launcher/net/Mode.h
+++ b/launcher/net/Mode.h
@@ -1,10 +1,5 @@
#pragma once
-namespace Net
-{
-enum class Mode
-{
- Offline,
- Online
-};
+namespace Net {
+enum class Mode { Offline, Online };
}