Object properties: Fix loss of custom selectionbox
[oweals/minetest.git] / src / database-files.h
index d23069c2a856e973d2a0331d2f1fe021dd35d34d..f0824a3047aa1e28dcd2ee59473e115605e194f4 100644 (file)
@@ -17,12 +17,11 @@ 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 for
-// player files
+// This backend is intended to be used on Minetest 0.4.16 only for the transition backend
+// for player files
 
 #include "database.h"
 
@@ -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 @@ private:
 
        std::string m_savedir;
 };
-
-#endif