diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-19 00:36:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 00:36:30 +0200 |
commit | cf37a5569002e83cc4d6916b39118ceba134da1b (patch) | |
tree | 4de13e55c8f2b37fca85f4c9a4b15e52bc0f030a /src/filecache.h | |
parent | 5f2af7c4e80da1c646e5a19ceed5bd0871b56e85 (diff) | |
download | minetest-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/filecache.h')
-rw-r--r-- | src/filecache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filecache.h b/src/filecache.h index f390f71b7..627ab45ed 100644 --- a/src/filecache.h +++ b/src/filecache.h @@ -30,7 +30,7 @@ public: /* 'dir' is the file cache directory to use. */ - FileCache(std::string dir) : m_dir(dir) {} + FileCache(const std::string &dir) : m_dir(dir) {} bool update(const std::string &name, const std::string &data); bool load(const std::string &name, std::ostream &os); |