]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/filecache.h
Fix Android node selection distance (#6187)
[dragonfireclient.git] / src / filecache.h
index f390f71b724977afd1fe8b01c91c13f4fc750aae..96e4c8ba1b6c14a6f3d0ae8dad1304390755d01b 100644 (file)
@@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef FILECACHE_HEADER
-#define FILECACHE_HEADER
+#pragma once
 
 #include <iostream>
 #include <string>
@@ -30,7 +29,7 @@ class FileCache
        /*
                '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);
@@ -41,5 +40,3 @@ class FileCache
        bool loadByPath(const std::string &path, std::ostream &os);
        bool updateByPath(const std::string &path, const std::string &data);
 };
-
-#endif