replace include guards with pragma once

This commit is contained in:
MihailRis
2024-08-10 01:57:59 +03:00
parent f43cc93cd2
commit de5c75d782
164 changed files with 166 additions and 656 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_BLOCKS_GFX_CACHE_HPP_
#define FRONTEND_BLOCKS_GFX_CACHE_HPP_
#pragma once
#include "typedefs.hpp"
@@ -23,5 +22,3 @@ public:
const Content* getContent() const;
};
#endif // FRONTEND_BLOCKS_GFX_CACHE_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_LEVEL_FRONTEND_HPP_
#define FRONTEND_LEVEL_FRONTEND_HPP_
#pragma once
#include <memory>
@@ -23,5 +22,3 @@ public:
ContentGfxCache* getContentGfxCache() const;
LevelController* getController() const;
};
#endif // FRONTEND_LEVEL_FRONTEND_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_UI_DOCUMENT_HPP_
#define FRONTEND_UI_DOCUMENT_HPP_
#pragma once
#include "typedefs.hpp"
@@ -49,5 +48,3 @@ public:
static std::unique_ptr<UiDocument> read(const scriptenv& parent_env, const std::string& name, const fs::path& file);
static std::shared_ptr<gui::UINode> readElement(const fs::path& file);
};
#endif // FRONTEND_UI_DOCUMENT_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_HUD_HPP_
#define FRONTEND_HUD_HPP_
#pragma once
#include "typedefs.hpp"
#include "util/ObjectsKeeper.hpp"
@@ -169,5 +168,3 @@ public:
std::shared_ptr<Inventory> getBlockInventory();
};
#endif // FRONTEND_HUD_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_LOCALES_HPP_
#define FRONTEND_LOCALES_HPP_
#pragma once
#include <string>
#include <vector>
@@ -68,5 +67,3 @@ namespace langs {
std::string locale,
const std::vector<ContentPack>& packs);
}
#endif // FRONTEND_LOCALES_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_MENU_MENU_HPP_
#define FRONTEND_MENU_MENU_HPP_
#pragma once
#include "data/dynamic.hpp"
#include "graphics/ui/elements/Menu.hpp"
@@ -29,5 +28,3 @@ namespace menus {
bool call(Engine* engine, runnable func);
}
#endif // FRONTEND_MENU_MENU_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
#define FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
#pragma once
#include "Screen.hpp"
@@ -40,5 +39,3 @@ public:
LevelController* getLevelController() const;
};
#endif // FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
+1 -5
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_SCREENS_MENU_SCREEN_HPP_
#define FRONTEND_SCREENS_MENU_SCREEN_HPP_
#pragma once
#include "Screen.hpp"
@@ -17,6 +16,3 @@ public:
void update(float delta) override;
void draw(float delta) override;
};
#endif // FRONTEND_SCREENS_MENU_SCREEN_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRONTEND_SCREENS_SCREEN_HPP_
#define FRONTEND_SCREENS_SCREEN_HPP_
#pragma once
#include "util/ObjectsKeeper.hpp"
@@ -18,5 +17,3 @@ public:
virtual void draw(float delta) = 0;
virtual void onEngineShutdown() {};
};
#endif // FRONTEND_SCREENS_SCREEN_HPP_