From 99565d260b22f731f22c3bed42bffe4197b062e5 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Fri, 16 Feb 2024 21:05:25 +0100 Subject: [PATCH] pragma once --- src/keyer.h | 7 ++----- src/settings.h | 7 ++----- src/sidetone.h | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/keyer.h b/src/keyer.h index 510c6b4..bc71240 100644 --- a/src/keyer.h +++ b/src/keyer.h @@ -1,5 +1,4 @@ -#ifndef KEYER_H -#define KEYER_H +#pragma once #include "settings.h" #include "sidetone.h" @@ -42,6 +41,4 @@ class Keyer final bool m_currentlyKeying{false}; bool m_currentlyPausing{false}; bool m_keyNextIambicB{false}; -}; - -#endif \ No newline at end of file +}; \ No newline at end of file diff --git a/src/settings.h b/src/settings.h index 763c0f8..ee40631 100644 --- a/src/settings.h +++ b/src/settings.h @@ -1,5 +1,4 @@ -#ifndef SETTINGS_H -#define SETTINGS_H +#pragma once #include "pico/flash.h" @@ -18,6 +17,4 @@ struct Settings { }; void store_settings(Settings &settings); -Settings read_settings(); - -#endif \ No newline at end of file +Settings read_settings(); \ No newline at end of file diff --git a/src/sidetone.h b/src/sidetone.h index e6960e3..0a2a8b2 100644 --- a/src/sidetone.h +++ b/src/sidetone.h @@ -1,5 +1,4 @@ -#ifndef SIDETONE_H -#define SIDETONE_H +#pragma once class Sidetone { @@ -11,6 +10,4 @@ class Sidetone private: Sidetone(){}; uint m_gpio{0}; -}; - -#endif \ No newline at end of file +}; \ No newline at end of file