mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Adapt to new compile option style and fix warnings (#3773)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user