summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:11:39 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:11:39 +0200
commit3e80bf933f890c95badbf8896d6a89f4bb708389 (patch)
tree4cb133b21fd2278696ff80a4985f3f8fb5039467 /src/clientiface.h
parent9c8fec83af2c94791865cd82ee18abdc54f913a1 (diff)
downloadminetest-3e80bf933f890c95badbf8896d6a89f4bb708389.tar.gz
minetest-3e80bf933f890c95badbf8896d6a89f4bb708389.tar.bz2
minetest-3e80bf933f890c95badbf8896d6a89f4bb708389.zip
l_server, clientenvironment, clientiface: code modernization
* use range-based for loops * use refs on some exceptions & one setter
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index b19a91b6f..36aa3572d 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -205,7 +205,7 @@ enum ClientStateEvent
*/
struct PrioritySortedBlockTransfer
{
- PrioritySortedBlockTransfer(float a_priority, v3s16 a_pos, u16 a_peer_id)
+ PrioritySortedBlockTransfer(float a_priority, const v3s16 &a_pos, u16 a_peer_id)
{
priority = a_priority;
pos = a_pos;
@@ -246,8 +246,8 @@ public:
bool isMechAllowed(AuthMechanism mech)
{ return allowed_auth_mechs & mech; }
- RemoteClient() {}
- ~RemoteClient() {}
+ RemoteClient() = default;
+ ~RemoteClient() = default;
/*
Finds block that should be sent next to the client.
@@ -495,7 +495,6 @@ private:
// Environment
ServerEnvironment *m_env;
- std::mutex m_env_mutex;
float m_print_info_timer;