Cpp11 initializers: last src root changeset (#6022)
[oweals/minetest.git] / src / filecache.h
index cf59a8e5b30aba304f2c50a4d4f13b0c96262daf..627ab45edc147680132e9970d57df69e8955ff1e 100644 (file)
@@ -21,8 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef FILECACHE_HEADER
 #define FILECACHE_HEADER
 
-#include <string>
 #include <iostream>
+#include <string>
 
 class FileCache
 {
@@ -30,15 +30,11 @@ 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 update_sha1(const std::string &data);
        bool load(const std::string &name, std::ostream &os);
-       bool load_sha1(const std::string &sha1_raw, std::ostream &os);
+
 private:
        std::string m_dir;