summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-04-19 00:36:30 +0200
committerGitHub <noreply@github.com>2017-04-19 00:36:30 +0200
commitcf37a5569002e83cc4d6916b39118ceba134da1b (patch)
tree4de13e55c8f2b37fca85f4c9a4b15e52bc0f030a /src/client.h
parent5f2af7c4e80da1c646e5a19ceed5bd0871b56e85 (diff)
downloadminetest-cf37a5569002e83cc4d6916b39118ceba134da1b.tar.gz
minetest-cf37a5569002e83cc4d6916b39118ceba134da1b.tar.bz2
minetest-cf37a5569002e83cc4d6916b39118ceba134da1b.zip
Fix various variables passed by copy instead of const ref (#5610)
Pointed by cppcheck
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h
index e7fcb597d..c55d7bcd5 100644
--- a/src/client.h
+++ b/src/client.h
@@ -245,7 +245,7 @@ public:
Client(
IrrlichtDevice *device,
const char *playername,
- std::string password,
+ const std::string &password,
MapDrawControl &control,
IWritableTextureSource *tsrc,
IWritableShaderSource *shsrc,