]> git.lizzy.rs Git - minetest.git/blobdiff - src/database-files.h
Particles: Do not add digging particles for airlike nodes (#6392)
[minetest.git] / src / database-files.h
index 8883622496aa9b4b40772bac694a020c5ceeec09..f0824a3047aa1e28dcd2ee59473e115605e194f4 100644 (file)
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef DATABASE_FILES_HEADER
-#define DATABASE_FILES_HEADER
+#pragma once
 
 // !!! WARNING !!!
 // This backend is intended to be used on Minetest 0.4.16 only for the transition backend
@@ -30,7 +29,7 @@ class PlayerDatabaseFiles : public PlayerDatabase
 {
 public:
        PlayerDatabaseFiles(const std::string &savedir) : m_savedir(savedir) {}
-       virtual ~PlayerDatabaseFiles() {}
+       virtual ~PlayerDatabaseFiles() = default;
 
        void savePlayer(RemotePlayer *player);
        bool loadPlayer(RemotePlayer *player, PlayerSAO *sao);
@@ -42,5 +41,3 @@ class PlayerDatabaseFiles : public PlayerDatabase
 
        std::string m_savedir;
 };
-
-#endif