Fix particle spawners not visible since CSM spawner implementation (#8289)
[oweals/minetest.git] / src / nameidmapping.h
index 3898430619606d2c43edc7fb560afc377f2fafe2..3acb43ef120db7b0bed345872a008400f4c8127a 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 NAMEIDMAPPING_HEADER
-#define NAMEIDMAPPING_HEADER
+#pragma once
 
 #include <string>
 #include <iostream>
@@ -56,6 +55,7 @@ public:
                m_id_to_name.erase(id);
                m_name_to_id.erase(name);
        }
+
        void eraseName(const std::string &name)
        {
                u16 id;
@@ -89,5 +89,3 @@ private:
        IdToNameMap m_id_to_name;
        NameToIdMap m_name_to_id;
 };
-
-#endif