Adapt to new compile option style and fix warnings (#3773)

This commit is contained in:
Alexander Bock
2025-08-12 14:19:45 +02:00
committed by GitHub
parent da029c2cbf
commit 19e9e2c1fb
106 changed files with 449 additions and 681 deletions

View File

@@ -381,10 +381,6 @@ struct TimeTimeline {
struct ScriptMessage {
ScriptMessage() = default;
ScriptMessage(const std::vector<char>& buffer) {
deserialize(buffer);
}
virtual ~ScriptMessage() {}
std::string _script;
double _timestamp = 0.0;
@@ -444,8 +440,8 @@ struct ScriptMessage {
ss << _script;
}
virtual void read(std::istream* in) {
uint32_t strLen;
void read(std::istream* in) {
uint32_t strLen = 0;
//Read string length from file
in->read(reinterpret_cast<char*>(&strLen), sizeof(strLen));
//Read back full string

View File

@@ -68,7 +68,7 @@ public:
std::vector<char> content;
};
class ConnectionLostError : public ghoul::RuntimeError {
class ConnectionLostError final : public ghoul::RuntimeError {
public:
explicit ConnectionLostError(bool shouldLogError_ = true);