aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-04-07 14:57:04 +0200
committerJán Sučan <jan@jansucan.com>2024-04-07 15:01:38 +0200
commit92fb599f0ae99c429316700ee8eef92d7365c28c (patch)
tree747c122758e0e040e2e44d652293ab911ad6c9a6 /src
parentd1eeddbc07e5d5fea402790f942edb0f1ae09374 (diff)
Use #pragma once include guard instead of #ifndef
Diffstat (limited to 'src')
-rw-r--r--src/backup.h5
-rw-r--r--src/options.h5
-rw-r--r--src/restore.h5
3 files changed, 3 insertions, 12 deletions
diff --git a/src/backup.h b/src/backup.h
index 38a0b68..ed7bf1a 100644
--- a/src/backup.h
+++ b/src/backup.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef BACKUP_H
-#define BACKUP_H
+#pragma once
#include "exception.h"
#include "options.h"
@@ -37,5 +36,3 @@ class BackupError : public DiffddError
};
void backup(const OptionsBackup &opts);
-
-#endif /* BACKUP_H */
diff --git a/src/options.h b/src/options.h
index 2355082..3d80c67 100644
--- a/src/options.h
+++ b/src/options.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef OPTIONS_H
-#define OPTIONS_H
+#pragma once
#include "exception.h"
@@ -110,5 +109,3 @@ class OptionParser
Options &opts);
static const char *next_arg(char ***const argv);
};
-
-#endif /* OPTIONS_H */
diff --git a/src/restore.h b/src/restore.h
index 4aee092..ac98517 100644
--- a/src/restore.h
+++ b/src/restore.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RESTORE_H
-#define RESTORE_H
+#pragma once
#include "exception.h"
#include "options.h"
@@ -37,5 +36,3 @@ class RestoreError : public DiffddError
};
void restore(const OptionsRestore &opts);
-
-#endif /* RESTORE_H */