Skip to content

Commit 37cffe4

Browse files
committed
app: Use pragma once for includes
1 parent 30b0be6 commit 37cffe4

19 files changed

Lines changed: 20 additions & 79 deletions

app/include/archive_helper.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
#ifndef _CMFILEMANAGER_ARCHIVE_HELPER_H_
2-
#define _CMFILEMANAGER_ARCHIVE_HELPER_H_
1+
#pragma once
32

43
#include <string>
54

65
namespace ArchiveHelper {
76
int Extract(const std::string &path);
87
}
9-
10-
#endif

app/include/audio.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_AUDIO_H_
2-
#define _CMFILEMANAGER_AUDIO_H_
1+
#pragma once
32

43
#include <glib2d.h>
54
#include <psptypes.h>
@@ -98,5 +97,3 @@ namespace Audio {
9897
u64 Seek(u64 index);
9998
void Exit(void);
10099
}
101-
102-
#endif

app/include/audioplayer.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
#ifndef _CMFILEMANAGER_AUDIOPLAYER_H_
2-
#define _CMFILEMANAGER_AUDIOPLAYER_H_
1+
#pragma once
32

43
#include "gui.h"
54

65
namespace AudioPlayer {
76
int Play(MenuItem &item);
87
}
9-
10-
#endif

app/include/colours.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_COLOURS_H_
2-
#define _CMFILEMANAGER_COLOURS_H_
1+
#pragma once
32

43
#include <glib2d.h>
54

@@ -20,5 +19,3 @@ extern g2dColor BG_COLOUR, STATUS_BAR_COLOUR, MENU_BAR_COLOUR, SELECTOR_COLOUR,
2019
namespace Colours {
2120
void Get(void);
2221
}
23-
24-
#endif

app/include/config.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_CONFIG_H_
2-
#define _CMFILEMANAGER_CONFIG_H_
1+
#pragma once
32

43
#include <string>
54

@@ -16,5 +15,3 @@ namespace Config {
1615
int Save(config_t config);
1716
int Load(void);
1817
}
19-
20-
#endif

app/include/fs.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_FS_H_
2-
#define _CMFILEMANAGER_FS_H_
1+
#pragma once
32

43
#include <pspiofilemgr.h>
54
#include <string>
@@ -43,5 +42,3 @@ namespace FS {
4342
int Delete(SceIoDirent &entry);
4443
std::string BuildPath(const std::string &path, const std::string &filename);
4544
}
46-
47-
#endif

app/include/ftppsp.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/*
22
* Copyright (c) 2021 Sergi Granell (xerpi), Joel16
3-
*/
4-
5-
#ifndef _CMFILEMANAGER_FTPPSP_H_
6-
#define _CMFILEMANAGER_FTPPSP_H_
3+
*/
4+
#pragma once
75

86
#include <pspsdk.h>
97
#include <arpa/inet.h>
@@ -67,5 +65,3 @@ int ftppsp_ext_add_custom_command(const char *cmd, cmd_dispatch_func func);
6765
int ftppsp_ext_del_custom_command(const char *cmd);
6866
void ftppsp_ext_client_send_ctrl_msg(ftppsp_client_info_t *client, const char *msg);
6967
void ftppsp_ext_client_send_data_msg(ftppsp_client_info_t *client, const char *str);
70-
71-
#endif

app/include/g2d.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_GLIB2D_HELPER_H_
2-
#define _CMFILEMANAGER_GLIB2D_HELPER_H_
1+
#pragma once
32

43
#include <glib2d.h>
54
#include <intraFont.h>
@@ -17,5 +16,3 @@ namespace G2D {
1716
float GetTextHeight(void);
1817
float DrawText(float x, float y, const std::string &text);
1918
}
20-
21-
#endif

app/include/game_launcher.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
#ifndef _CMFILEMANAGER_GAME_LAUNCHER_H_
2-
#define _CMFILEMANAGER_GAME_LAUNCHER_H_
1+
#pragma once
32

43
namespace GameLauncher {
54
int DisplayLauncher(const std::string &path);
65
}
7-
8-
#endif

app/include/gui.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _CMFILEMANAGER_GUI_HELPER_H_
2-
#define _CMFILEMANAGER_GUI_HELPER_H_
1+
#pragma once
32

43
#include <glib2d.h>
54
#include <pspiofilemgr.h>
@@ -62,5 +61,3 @@ namespace GUI {
6261
void DisplayImageViewer(MenuItem &item);
6362
void ControlImageViewer(MenuItem &item, float &delta);
6463
}
65-
66-
#endif

0 commit comments

Comments
 (0)