fix formatting in all files

This commit is contained in:
Lion Kortlepel committed 2022-11-23 09:34:50 +01:00
1 parent 3f05b72cc2
commit b756ce3c3f
7 files changed
+8 -11

No files matched your search

+1 -2
View File
@@ -101,8 +101,7 @@ public:
// bytes sent on TCP // bytes sent on TCP
std::atomic_size_t TcpSent = 0; std::atomic_size_t TcpSent = 0;
TimeType::time_point ConnectionTime{}; TimeType::time_point ConnectionTime {};
private: private:
void InsertVehicle(int ID, const std::string& Data); void InsertVehicle(int ID, const std::string& Data);
+3 -3
View File
@@ -66,9 +66,9 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \ Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
} \ } \
} while (false) } while (false)
#define beammp_assert_not_reachable() \ #define beammp_assert_not_reachable() \
do { \ do { \
beammp_errorf("Assertion failed in '{}:{}': Unreachable code reached. This may result in a crash or undefined state of the program.", __func__, _line); \ beammp_errorf("Assertion failed in '{}:{}': Unreachable code reached. This may result in a crash or undefined state of the program.", __func__, _line); \
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \ Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
} while (false) } while (false)
#endif // DEBUG #endif // DEBUG
+2 -2
View File
@@ -3,7 +3,7 @@
// //
#pragma once #pragma once
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/document.h" #include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h" #include "rapidjson/writer.h"
+1 -1
View File
@@ -6,8 +6,8 @@
* and write locks and read locks are mutually exclusive. * and write locks and read locks are mutually exclusive.
*/ */
#include <shared_mutex>
#include <mutex> #include <mutex>
#include <shared_mutex>
// Use ReadLock(m) and WriteLock(m) to lock it. // Use ReadLock(m) and WriteLock(m) to lock it.
using RWMutex = std::shared_mutex; using RWMutex = std::shared_mutex;
+1 -1
View File
@@ -67,7 +67,7 @@ private:
{ "lua", [this](const auto& a, auto& b) { Autocomplete_Lua(a, b); } }, { "lua", [this](const auto& a, auto& b) { Autocomplete_Lua(a, b); } },
{ "kick", [this](const auto& a, auto& b) { Autocomplete_Kick(a, b); } }, { "kick", [this](const auto& a, auto& b) { Autocomplete_Kick(a, b); } },
{ "settings", [this](const auto& a, auto& b) { Autocomplete_Settings(a, b); } }, { "settings", [this](const auto& a, auto& b) { Autocomplete_Settings(a, b); } },
}; };
Commandline mCommandline; Commandline mCommandline;
std::vector<std::string> mCachedLuaHistory; std::vector<std::string> mCachedLuaHistory;
-1
View File
@@ -7,4 +7,3 @@ namespace uuid {
std::string GenerateUuid(); std::string GenerateUuid();
} }
-1
View File
@@ -112,7 +112,6 @@ int BeamMPServerMain(MainArguments Arguments) {
} }
} }
Application::SetSubsystemStatus("Main", Application::Status::Starting); Application::SetSubsystemStatus("Main", Application::Status::Starting);
SetupSignalHandlers(); SetupSignalHandlers();