prefer #pragma once to #define header guards

This commit is contained in:
Paul Davis
2025-01-07 11:49:05 -07:00
parent 9e4c447c3a
commit f5d15aac0b
3 changed files with 3 additions and 13 deletions

View File

@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __gtk2_ardour_pianoroll_automation_line_h__
#define __gtk2_ardour_pianoroll_automation_line_h__
#pragma once
#include "automation_line.h"
@@ -34,5 +33,3 @@ class PianorollAutomationLine : public AutomationLine
bool base_event_handler (GdkEvent*);
bool event_handler (GdkEvent*);
};
#endif /* __gtk2_ardour_midi_cue_automation_line_base_h__ */

View File

@@ -20,8 +20,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __gtk2_ardour_pianoroll_background_h__
#define __gtk2_ardour_pianoroll_background_h__
#pragma once
#include <cstdint>
@@ -57,6 +56,3 @@ class CueMidiBackground : public MidiViewBackground
void apply_note_range_to_children();
};
#endif /* __gtk2_ardour_pianoroll_background_h__ */

View File

@@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __gtk2_ardour_pianoroll_velocity_h__
#define __gtk2_ardour_pianoroll_velocity_h__
#pragma once
#include "ghost_event.h"
#include "velocity_display.h"
@@ -39,5 +38,3 @@ class PianorollVelocityDisplay : public VelocityDisplay
bool base_event (GdkEvent*);
bool lollevent (GdkEvent*, GhostEvent*);
};
#endif /* __gtk2_ardour_pianoroll_velocity_h__ */