summaryrefslogtreecommitdiff
path: root/src/filecache.h
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2017-06-03 14:55:10 -0400
committerShadowNinja <shadowninja@minetest.net>2017-06-03 14:55:10 -0400
commitcaecdb681c428c1aab9c0f7eec2570c0460f995c (patch)
treee5115982ea59bbf2343ba9b35bc4a0cfbb56f407 /src/filecache.h
parent81d56b94919dceb7b2e51d70b21a7ca22f852bd5 (diff)
parent80dc961d24e1964e25d57039ddb2ba639f9f4d22 (diff)
downloadminetest-caecdb681c428c1aab9c0f7eec2570c0460f995c.tar.gz
minetest-caecdb681c428c1aab9c0f7eec2570c0460f995c.tar.bz2
minetest-caecdb681c428c1aab9c0f7eec2570c0460f995c.zip
Merge 0.4.16 into stable-0.4
Diffstat (limited to 'src/filecache.h')
-rw-r--r--src/filecache.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/filecache.h b/src/filecache.h
index a913a06ac..627ab45ed 100644
--- a/src/filecache.h
+++ b/src/filecache.h
@@ -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,13 +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 load(const std::string &name, std::ostream &os);
+
private:
std::string m_dir;