mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Code modernization: src/m* (part 3)
* empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove some unused headers in some cpp variable
This commit is contained in:
parent
b5f7249a7e
commit
d382483fa7
11 changed files with 20 additions and 31 deletions
|
@ -32,7 +32,7 @@ struct CachedMapBlockData
|
|||
int refcount_from_queue = 0;
|
||||
std::time_t last_used_timestamp = std::time(0);
|
||||
|
||||
CachedMapBlockData() {}
|
||||
CachedMapBlockData() = default;
|
||||
~CachedMapBlockData();
|
||||
};
|
||||
|
||||
|
@ -45,7 +45,7 @@ struct QueuedMeshUpdate
|
|||
v3s16 crack_pos;
|
||||
MeshMakeData *data = nullptr; // This is generated in MeshUpdateQueue::pop()
|
||||
|
||||
QueuedMeshUpdate(){};
|
||||
QueuedMeshUpdate() = default;
|
||||
~QueuedMeshUpdate();
|
||||
};
|
||||
|
||||
|
@ -105,7 +105,7 @@ struct MeshUpdateResult
|
|||
MapBlockMesh *mesh = nullptr;
|
||||
bool ack_block_to_server = false;
|
||||
|
||||
MeshUpdateResult() {}
|
||||
MeshUpdateResult() = default;
|
||||
};
|
||||
|
||||
class MeshUpdateThread : public UpdateThread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue