mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
C++ modernize: Pragma once (#6264)
* Migrate cpp headers to pragma once
This commit is contained in:
@@ -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 __CLIENT_LAUNCHER_H__
|
||||
#define __CLIENT_LAUNCHER_H__
|
||||
#pragma once
|
||||
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "client/inputhandler.h"
|
||||
@@ -69,5 +68,3 @@ protected:
|
||||
std::string current_address = "does-not-exist";
|
||||
int current_port = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -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 INPUT_HANDLER_H
|
||||
#define INPUT_HANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "joystick_controller.h"
|
||||
@@ -393,5 +392,3 @@ private:
|
||||
bool leftreleased = false;
|
||||
bool rightreleased = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -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 JOYSTICK_HEADER
|
||||
#define JOYSTICK_HEADER
|
||||
#pragma once
|
||||
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "keys.h"
|
||||
@@ -168,5 +167,3 @@ private:
|
||||
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_pressed_keys;
|
||||
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_released_keys;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -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 KEYS_HEADER
|
||||
#define KEYS_HEADER
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
|
||||
@@ -114,5 +113,3 @@ public:
|
||||
};
|
||||
|
||||
typedef KeyType::T GameKeyType;
|
||||
|
||||
#endif
|
||||
|
@@ -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 TILE_HEADER
|
||||
#define TILE_HEADER
|
||||
#pragma once
|
||||
|
||||
#include "irrlichttypes.h"
|
||||
#include "irr_v3d.h"
|
||||
@@ -330,4 +329,3 @@ struct TileSpec
|
||||
//! The first is base texture, the second is overlay.
|
||||
TileLayer layers[MAX_TILE_LAYERS];
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user