Cleanup in content_mapblock (#5746)
[oweals/minetest.git] / src / filecache.h
index f390f71b724977afd1fe8b01c91c13f4fc750aae..627ab45edc147680132e9970d57df69e8955ff1e 100644 (file)
@@ -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);