mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00: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:
parent
1dd535c0c6
commit
e2a6b7c8d2
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue