mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
serialize: use a temporary for SerializeException
Exception must always use temporary instead of global copied exception instances, it's not recommended and should have undefined issues
This commit is contained in:
@@ -28,8 +28,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <iomanip>
|
||||
#include <vector>
|
||||
|
||||
SerializationError eof_ser_err("Attempted read past end of data");
|
||||
|
||||
////
|
||||
//// BufReader
|
||||
////
|
||||
|
Reference in New Issue
Block a user