From 75f56cd3e1c310cccee5c0755003a6b3ecd7f50f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 25 Sep 2024 18:38:49 -0600 Subject: [PATCH] the great onceification (libs) Replace use of #ifndef header guards with #pragma once Modern C++, baby! --- libs/ardour/ardour/amp.h | 4 +--- libs/ardour/ardour/analyser.h | 4 +--- libs/ardour/ardour/analysis_graph.h | 4 +--- libs/ardour/ardour/ardour.h | 4 +--- libs/ardour/ardour/async_midi_port.h | 4 +--- libs/ardour/ardour/audio_backend.h | 4 +--- libs/ardour/ardour/audio_buffer.h | 4 +--- libs/ardour/ardour/audio_library.h | 4 +--- libs/ardour/ardour/audio_playlist_importer.h | 4 +--- libs/ardour/ardour/audio_playlist_source.h | 4 +--- libs/ardour/ardour/audio_port.h | 4 +--- libs/ardour/ardour/audio_region_importer.h | 4 +--- libs/ardour/ardour/audio_track.h | 4 +--- libs/ardour/ardour/audio_track_importer.h | 4 +--- libs/ardour/ardour/audio_unit.h | 4 +--- libs/ardour/ardour/audioanalyser.h | 4 +--- libs/ardour/ardour/audioengine.h | 4 +--- libs/ardour/ardour/audiofile_tagger.h | 4 +--- libs/ardour/ardour/audiofilesource.h | 4 +--- libs/ardour/ardour/audioplaylist.h | 4 +--- libs/ardour/ardour/audioregion.h | 4 +--- libs/ardour/ardour/audiorom.h | 4 +--- libs/ardour/ardour/audiosource.h | 4 +--- libs/ardour/ardour/auditioner.h | 4 +--- libs/ardour/ardour/auto_bundle.h | 4 +--- libs/ardour/ardour/automatable.h | 4 +--- libs/ardour/ardour/automatable_sequence.h | 4 +--- libs/ardour/ardour/automation_control.h | 4 +--- libs/ardour/ardour/automation_list.h | 4 +--- libs/ardour/ardour/automation_watch.h | 4 +--- libs/ardour/ardour/beatbox.h | 4 +--- libs/ardour/ardour/boost_debug.h | 4 +--- libs/ardour/ardour/broadcast_info.h | 4 +--- libs/ardour/ardour/buffer.h | 4 +--- libs/ardour/ardour/buffer_set.h | 4 +--- libs/ardour/ardour/bundle.h | 4 +--- libs/ardour/ardour/butler.h | 4 +--- libs/ardour/ardour/caimportable.h | 4 +--- libs/ardour/ardour/capturing_processor.h | 4 +--- libs/ardour/ardour/chan_count.h | 4 +--- libs/ardour/ardour/chan_mapping.h | 4 +--- libs/ardour/ardour/click.h | 4 +--- libs/ardour/ardour/comparable_shared_ptr.h | 4 +--- libs/ardour/ardour/control_group.h | 4 +--- libs/ardour/ardour/control_group_member.h | 4 +--- libs/ardour/ardour/coreaudiosource.h | 4 +--- libs/ardour/ardour/cycle_timer.h | 4 +--- libs/ardour/ardour/cycles.h | 4 +--- libs/ardour/ardour/data_type.h | 4 +--- libs/ardour/ardour/debug.h | 4 +--- libs/ardour/ardour/delayline.h | 4 +--- libs/ardour/ardour/delivery.h | 4 +--- libs/ardour/ardour/directory_names.h | 4 +--- libs/ardour/ardour/disk_io.h | 4 +--- libs/ardour/ardour/disk_writer.h | 4 +--- libs/ardour/ardour/ebur128_analysis.h | 4 +--- libs/ardour/ardour/element_import_handler.h | 4 +--- libs/ardour/ardour/element_importer.h | 4 +--- libs/ardour/ardour/event_ring_buffer.h | 4 +--- libs/ardour/ardour/event_type_map.h | 4 +--- libs/ardour/ardour/export_analysis.h | 4 +--- libs/ardour/ardour/export_channel.h | 4 +--- libs/ardour/ardour/export_channel_configuration.h | 4 +--- libs/ardour/ardour/export_failed.h | 4 +--- libs/ardour/ardour/export_filename.h | 4 +--- libs/ardour/ardour/export_format_base.h | 4 +--- libs/ardour/ardour/export_format_compatibility.h | 4 +--- libs/ardour/ardour/export_format_manager.h | 4 +--- libs/ardour/ardour/export_format_specification.h | 4 +--- libs/ardour/ardour/export_formats.h | 4 +--- libs/ardour/ardour/export_graph_builder.h | 4 +--- libs/ardour/ardour/export_handler.h | 4 +--- libs/ardour/ardour/export_pointers.h | 4 +--- libs/ardour/ardour/export_preset.h | 4 +--- libs/ardour/ardour/export_profile_manager.h | 4 +--- libs/ardour/ardour/export_status.h | 4 +--- libs/ardour/ardour/export_timespan.h | 4 +--- libs/ardour/ardour/file_source.h | 4 +--- libs/ardour/ardour/filename_extensions.h | 4 +--- libs/ardour/ardour/filter.h | 4 +--- libs/ardour/ardour/fixed_delay.h | 4 +--- libs/ardour/ardour/gain_control.h | 4 +--- libs/ardour/ardour/graph.h | 4 +--- libs/ardour/ardour/graph_edges.h | 4 +--- libs/ardour/ardour/graphnode.h | 4 +--- libs/ardour/ardour/import_status.h | 4 +--- libs/ardour/ardour/importable_source.h | 4 +--- libs/ardour/ardour/instrument_info.h | 4 +--- libs/ardour/ardour/internal_return.h | 4 +--- libs/ardour/ardour/internal_send.h | 4 +--- libs/ardour/ardour/interthread_info.h | 4 +--- libs/ardour/ardour/io.h | 4 +--- libs/ardour/ardour/io_processor.h | 4 +--- libs/ardour/ardour/io_vector.h | 4 +--- libs/ardour/ardour/ladspa_plugin.h | 4 +--- libs/ardour/ardour/latent.h | 4 +--- libs/ardour/ardour/legatize.h | 4 +--- libs/ardour/ardour/libardour_visibility.h | 4 +--- libs/ardour/ardour/library.h | 4 +--- libs/ardour/ardour/linux_vst_support.h | 4 +--- libs/ardour/ardour/location.h | 4 +--- libs/ardour/ardour/location_importer.h | 4 +--- libs/ardour/ardour/logcurve.h | 4 +--- libs/ardour/ardour/logmeter.h | 4 +--- libs/ardour/ardour/ltc_file_reader.h | 4 +--- libs/ardour/ardour/luabindings.h | 4 +--- libs/ardour/ardour/luaproc.h | 4 +--- libs/ardour/ardour/lxvst_plugin.h | 4 +--- libs/ardour/ardour/mac_vst_plugin.h | 4 +--- libs/ardour/ardour/mac_vst_support.h | 4 +--- libs/ardour/ardour/meter.h | 4 +--- libs/ardour/ardour/midi_automation_list_binder.h | 4 +--- libs/ardour/ardour/midi_buffer.h | 4 +--- libs/ardour/ardour/midi_channel_filter.h | 4 +--- libs/ardour/ardour/midi_cursor.h | 4 +--- libs/ardour/ardour/midi_model.h | 4 +--- libs/ardour/ardour/midi_operator.h | 4 +--- libs/ardour/ardour/midi_playlist.h | 4 +--- libs/ardour/ardour/midi_port.h | 4 +--- libs/ardour/ardour/midi_region.h | 4 +--- libs/ardour/ardour/midi_ring_buffer.h | 4 +--- libs/ardour/ardour/midi_scene_change.h | 4 +--- libs/ardour/ardour/midi_scene_changer.h | 4 +--- libs/ardour/ardour/midi_source.h | 4 +--- libs/ardour/ardour/midi_state_tracker.h | 4 +--- libs/ardour/ardour/midi_stretch.h | 4 +--- libs/ardour/ardour/midi_track.h | 4 +--- libs/ardour/ardour/midi_ui.h | 4 +--- libs/ardour/ardour/mididm.h | 4 +--- libs/ardour/ardour/midiport_manager.h | 4 +--- libs/ardour/ardour/mix.h | 4 +--- libs/ardour/ardour/mode.h | 4 +--- libs/ardour/ardour/monitor_control.h | 4 +--- libs/ardour/ardour/monitor_processor.h | 4 +--- libs/ardour/ardour/monitor_return.h | 4 +--- libs/ardour/ardour/monitorable.h | 4 +--- libs/ardour/ardour/movable.h | 4 +--- libs/ardour/ardour/msvc_libardour.h | 4 +--- libs/ardour/ardour/mtdm.h | 4 +--- libs/ardour/ardour/mute_control.h | 4 +--- libs/ardour/ardour/mute_master.h | 4 +--- libs/ardour/ardour/muteable.h | 4 +--- libs/ardour/ardour/onset_detector.h | 4 +--- libs/ardour/ardour/pan_controllable.h | 4 +--- libs/ardour/ardour/pannable.h | 4 +--- libs/ardour/ardour/panner.h | 4 +--- libs/ardour/ardour/panner_manager.h | 4 +--- libs/ardour/ardour/panner_shell.h | 4 +--- libs/ardour/ardour/parameter_descriptor.h | 4 +--- libs/ardour/ardour/parameter_types.h | 4 +--- libs/ardour/ardour/peak.h | 4 +--- libs/ardour/ardour/phase_control.h | 4 +--- libs/ardour/ardour/pitch.h | 4 +--- libs/ardour/ardour/playlist.h | 4 +--- libs/ardour/ardour/playlist_factory.h | 4 +--- libs/ardour/ardour/playlist_source.h | 4 +--- libs/ardour/ardour/plugin.h | 4 +--- libs/ardour/ardour/plugin_insert.h | 4 +--- libs/ardour/ardour/plugin_manager.h | 4 +--- libs/ardour/ardour/plugin_types.h | 5 ++--- libs/ardour/ardour/port.h | 4 +--- libs/ardour/ardour/port_engine.h | 4 +--- libs/ardour/ardour/port_insert.h | 4 +--- libs/ardour/ardour/port_manager.h | 4 +--- libs/ardour/ardour/port_set.h | 4 +--- libs/ardour/ardour/presentation_info.h | 4 +--- libs/ardour/ardour/processor.h | 4 +--- libs/ardour/ardour/profile.h | 4 +--- libs/ardour/ardour/proxy_controllable.h | 4 +--- libs/ardour/ardour/quantize.h | 4 +--- libs/ardour/ardour/rb_effect.h | 4 +--- libs/ardour/ardour/rc_configuration.h | 4 +--- libs/ardour/ardour/readable.h | 4 +--- libs/ardour/ardour/readonly_control.h | 4 +--- libs/ardour/ardour/recent_sessions.h | 4 +--- libs/ardour/ardour/record_enable_control.h | 4 +--- libs/ardour/ardour/record_safe_control.h | 4 +--- libs/ardour/ardour/recordable.h | 4 +--- libs/ardour/ardour/region.h | 4 +--- libs/ardour/ardour/region_factory.h | 4 +--- libs/ardour/ardour/region_fx_plugin.h | 4 +--- libs/ardour/ardour/region_sorters.h | 4 +--- libs/ardour/ardour/resampled_source.h | 4 +--- libs/ardour/ardour/return.h | 4 +--- libs/ardour/ardour/reverse.h | 4 +--- libs/ardour/ardour/revision.h | 4 +--- libs/ardour/ardour/route.h | 4 +--- libs/ardour/ardour/route_group.h | 4 +--- libs/ardour/ardour/route_group_member.h | 4 +--- libs/ardour/ardour/route_group_specialized.h | 4 +--- libs/ardour/ardour/rt_midibuffer.h | 4 +--- libs/ardour/ardour/runtime_functions.h | 4 +--- libs/ardour/ardour/scene_change.h | 4 +--- libs/ardour/ardour/scene_changer.h | 4 +--- libs/ardour/ardour/search_paths.h | 4 +--- libs/ardour/ardour/segment_descriptor.h | 4 +--- libs/ardour/ardour/selection.h | 4 +--- libs/ardour/ardour/send.h | 4 +--- libs/ardour/ardour/session.h | 4 +--- libs/ardour/ardour/session_configuration.h | 4 +--- libs/ardour/ardour/session_directory.h | 4 +--- libs/ardour/ardour/session_event.h | 4 +--- libs/ardour/ardour/session_handle.h | 4 +--- libs/ardour/ardour/session_metadata.h | 4 +--- libs/ardour/ardour/session_object.h | 4 +--- libs/ardour/ardour/session_playlist.h | 4 +--- libs/ardour/ardour/session_playlists.h | 4 +--- libs/ardour/ardour/session_route.h | 4 +--- libs/ardour/ardour/session_utils.h | 4 +--- libs/ardour/ardour/sidechain.h | 4 +--- libs/ardour/ardour/silentfilesource.h | 4 +--- libs/ardour/ardour/slavable.h | 4 +--- libs/ardour/ardour/slavable_automation_control.h | 4 +--- libs/ardour/ardour/smf_source.h | 4 +--- libs/ardour/ardour/sndfile_helpers.h | 4 +--- libs/ardour/ardour/sndfileimportable.h | 4 +--- libs/ardour/ardour/sndfilesource.h | 4 +--- libs/ardour/ardour/solo_control.h | 4 +--- libs/ardour/ardour/solo_isolate_control.h | 4 +--- libs/ardour/ardour/solo_safe_control.h | 4 +--- libs/ardour/ardour/soloable.h | 4 +--- libs/ardour/ardour/soundcloud_upload.h | 4 +--- libs/ardour/ardour/soundseq.h | 4 +--- libs/ardour/ardour/source.h | 4 +--- libs/ardour/ardour/source_factory.h | 4 +--- libs/ardour/ardour/speaker.h | 4 +--- libs/ardour/ardour/speakers.h | 4 +--- libs/ardour/ardour/spline.h | 4 +--- libs/ardour/ardour/srcfilesource.h | 4 +--- libs/ardour/ardour/step_sequencer.h | 4 +--- libs/ardour/ardour/stretch.h | 4 +--- libs/ardour/ardour/stripable.h | 4 +--- libs/ardour/ardour/surround_return.h | 4 +--- libs/ardour/ardour/surround_send.h | 4 +--- libs/ardour/ardour/tailtime.h | 4 +--- libs/ardour/ardour/tempo.h | 4 +--- libs/ardour/ardour/tempo_map_importer.h | 4 +--- libs/ardour/ardour/thawlist.h | 5 ++--- libs/ardour/ardour/ticker.h | 4 +--- libs/ardour/ardour/timecode.h | 4 +--- libs/ardour/ardour/timefx_request.h | 4 +--- libs/ardour/ardour/timestamps.h | 4 +--- libs/ardour/ardour/track.h | 4 +--- libs/ardour/ardour/transform.h | 4 +--- libs/ardour/ardour/transient_detector.h | 4 +--- libs/ardour/ardour/transport_master.h | 4 +--- libs/ardour/ardour/transport_master_manager.h | 4 +--- libs/ardour/ardour/transpose.h | 4 +--- libs/ardour/ardour/triggerbox.h | 4 +--- libs/ardour/ardour/trimmable.h | 4 +--- libs/ardour/ardour/types.h | 4 +--- libs/ardour/ardour/unknown_processor.h | 4 +--- libs/ardour/ardour/uri_map.h | 4 +--- libs/ardour/ardour/user_bundle.h | 4 +--- libs/ardour/ardour/utils.h | 4 +--- libs/ardour/ardour/value_as_string.h | 4 +--- libs/ardour/ardour/variant.h | 4 +--- libs/ardour/ardour/vca.h | 4 +--- libs/ardour/ardour/vca_manager.h | 4 +--- libs/ardour/ardour/velocity_control.h | 4 +--- libs/ardour/ardour/vst_plugin.h | 4 +--- libs/ardour/ardour/vst_types.h | 4 +--- libs/ardour/ardour/windows_vst_plugin.h | 4 +--- libs/ardour/ardour/worker.h | 4 +--- libs/ardour/ardour/wrong_program.h | 4 +--- libs/ardouralsautil/ardouralsautil/deviceinfo.h | 4 +--- libs/ardouralsautil/ardouralsautil/devicelist.h | 4 +--- libs/audiographer/audiographer/visibility.h | 4 +--- libs/evoral/evoral/visibility.h | 4 +--- libs/gtkmm2ext/gtkmm2ext/doi.h | 4 +--- libs/gtkmm2ext/gtkmm2ext/gtk_ui.h | 4 +--- libs/gtkmm2ext/gtkmm2ext/gtkutils.h | 4 +--- libs/gtkmm2ext/gtkmm2ext/gui_thread.h | 4 +--- libs/gtkmm2ext/gtkmm2ext/textviewer.h | 4 +--- libs/midi++2/midi++/channel.h | 4 +--- libs/midi++2/midi++/events.h | 4 +--- libs/midi++2/midi++/ipmidi_port.h | 4 +--- libs/midi++2/midi++/libmidi_visibility.h | 4 +--- libs/midi++2/midi++/mmc.h | 4 +--- libs/midi++2/midi++/parser.h | 4 +--- libs/midi++2/midi++/port.h | 4 +--- libs/midi++2/midi++/types.h | 4 +--- libs/pbd/pbd/abstract_ui.h | 4 +--- libs/pbd/pbd/assert.h | 4 +--- libs/pbd/pbd/atomic.h | 4 +--- libs/pbd/pbd/base_ui.h | 4 +--- libs/pbd/pbd/basename.h | 4 +--- libs/pbd/pbd/boost_debug.h | 4 +--- libs/pbd/pbd/cartesian.h | 4 +--- libs/pbd/pbd/command.h | 4 +--- libs/pbd/pbd/configuration.h | 4 +--- libs/pbd/pbd/configuration_variable.h | 4 +--- libs/pbd/pbd/control_math.h | 4 +--- libs/pbd/pbd/controllable.h | 4 +--- libs/pbd/pbd/convert.h | 4 +--- libs/pbd/pbd/cpus.h | 4 +--- libs/pbd/pbd/crossthread.h | 4 +--- libs/pbd/pbd/debug.h | 4 +--- libs/pbd/pbd/debug_rt_alloc.h | 5 +---- libs/pbd/pbd/demangle.h | 4 +--- libs/pbd/pbd/destructible.h | 4 +--- libs/pbd/pbd/downloader.h | 4 +--- libs/pbd/pbd/enumwriter.h | 4 +--- libs/pbd/pbd/epa.h | 4 +--- libs/pbd/pbd/error.h | 4 +--- libs/pbd/pbd/event_loop.h | 4 +--- libs/pbd/pbd/failed_constructor.h | 4 +--- libs/pbd/pbd/fastlog.h | 4 +--- libs/pbd/pbd/ffs.h | 4 +--- libs/pbd/pbd/floating.h | 4 +--- libs/pbd/pbd/fpu.h | 4 +--- libs/pbd/pbd/functor_command.h | 4 +--- libs/pbd/pbd/glib_event_source.h | 4 +--- libs/pbd/pbd/gstdio_compat.h | 4 +--- libs/pbd/pbd/history_owner.h | 4 +--- libs/pbd/pbd/id.h | 4 +--- libs/pbd/pbd/inflater.h | 4 +--- libs/pbd/pbd/integer_division.h | 4 +--- libs/pbd/pbd/libpbd_visibility.h | 4 +--- libs/pbd/pbd/malign.h | 4 +--- libs/pbd/pbd/match.h | 4 +--- libs/pbd/pbd/mathfix.h | 4 +--- libs/pbd/pbd/memento_command.h | 4 +--- libs/pbd/pbd/microseconds.h | 4 +--- libs/pbd/pbd/mountpoint.h | 4 +--- libs/pbd/pbd/openuri.h | 4 +--- libs/pbd/pbd/pathexpand.h | 4 +--- libs/pbd/pbd/pbd.h | 4 +--- libs/pbd/pbd/playback_buffer.h | 4 +--- libs/pbd/pbd/pool.h | 4 +--- libs/pbd/pbd/properties.h | 4 +--- libs/pbd/pbd/property_basics.h | 4 +--- libs/pbd/pbd/property_basics_impl.h | 4 +--- libs/pbd/pbd/property_list.h | 4 +--- libs/pbd/pbd/property_list_impl.h | 4 +--- libs/pbd/pbd/rcu.h | 4 +--- libs/pbd/pbd/receiver.h | 4 +--- libs/pbd/pbd/replace_all.h | 4 +--- libs/pbd/pbd/ringbuffer.h | 4 +--- libs/pbd/pbd/ringbufferNPT.h | 4 +--- libs/pbd/pbd/scoped_file_descriptor.h | 4 +--- libs/pbd/pbd/search_path.h | 4 +--- libs/pbd/pbd/selectable.h | 4 +--- libs/pbd/pbd/semutils.h | 4 +--- libs/pbd/pbd/sequence_property.h | 4 +--- libs/pbd/pbd/shortpath.h | 4 +--- libs/pbd/pbd/signals.h | 4 +--- libs/pbd/pbd/stacktrace.h | 4 +--- libs/pbd/pbd/stateful.h | 4 +--- libs/pbd/pbd/stateful_diff_command.h | 4 +--- libs/pbd/pbd/statefuldestructible.h | 4 +--- libs/pbd/pbd/stl_delete.h | 4 +--- libs/pbd/pbd/strsplit.h | 4 +--- libs/pbd/pbd/textreceiver.h | 4 +--- libs/pbd/pbd/thrown_error.h | 4 +--- libs/pbd/pbd/timer.h | 4 +--- libs/pbd/pbd/timing.h | 4 +--- libs/pbd/pbd/touchable.h | 4 +--- libs/pbd/pbd/transmitter.h | 4 +--- libs/pbd/pbd/undo.h | 4 +--- libs/pbd/pbd/unknown_type.h | 4 +--- libs/pbd/pbd/unwind.h | 4 +--- libs/pbd/pbd/uuid.h | 4 +--- libs/pbd/pbd/uuid_boost.h | 4 +--- libs/pbd/pbd/whitespace.h | 4 +--- libs/pbd/pbd/windows_special_dirs.h | 4 +--- libs/temporal/temporal/bbt_argument.h | 4 +--- libs/temporal/temporal/bbt_time.h | 4 +--- libs/temporal/temporal/debug.h | 4 +--- libs/temporal/temporal/domain_provider.h | 4 +--- libs/temporal/temporal/domain_swap.h | 4 +--- libs/temporal/temporal/superclock.h | 4 +--- libs/temporal/temporal/tempo.h | 4 +--- libs/temporal/temporal/time.h | 4 +--- libs/temporal/temporal/timeline.h | 4 +--- libs/temporal/temporal/types.h | 4 +--- libs/temporal/temporal/visibility.h | 4 +--- libs/waveview/waveview/visibility.h | 4 +--- libs/widgets/widgets/visibility.h | 4 +--- 379 files changed, 381 insertions(+), 1138 deletions(-) diff --git a/libs/ardour/ardour/amp.h b/libs/ardour/ardour/amp.h index 1eb1880523..7fe29f5cf9 100644 --- a/libs/ardour/ardour/amp.h +++ b/libs/ardour/ardour/amp.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_amp_h__ -#define __ardour_amp_h__ +#pragma once #include "ardour/dB.h" #include "ardour/libardour_visibility.h" @@ -88,4 +87,3 @@ private: } // namespace ARDOUR -#endif // __ardour_amp_h__ diff --git a/libs/ardour/ardour/analyser.h b/libs/ardour/ardour/analyser.h index de678b14cf..699983f1d9 100644 --- a/libs/ardour/ardour/analyser.h +++ b/libs/ardour/ardour/analyser.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_analyser_h__ -#define __ardour_analyser_h__ +#pragma once #include @@ -54,4 +53,3 @@ private: } // namespace ARDOUR -#endif /* __ardour_analyser_h__ */ diff --git a/libs/ardour/ardour/analysis_graph.h b/libs/ardour/ardour/analysis_graph.h index 48b354501c..ad9fb0fc0d 100644 --- a/libs/ardour/ardour/analysis_graph.h +++ b/libs/ardour/ardour/analysis_graph.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_analysis_graph_h__ -#define __ardour_analysis_graph_h__ +#pragma once #include #include @@ -82,4 +81,3 @@ class LIBARDOUR_API AnalysisGraph { AnalysisPtr analyser; }; } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/ardour.h b/libs/ardour/ardour/ardour.h index d200e4eed3..43abeb99af 100644 --- a/libs/ardour/ardour/ardour.h +++ b/libs/ardour/ardour/ardour.h @@ -21,8 +21,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_ardour_h__ -#define __ardour_ardour_h__ +#pragma once #include #include @@ -99,5 +98,4 @@ namespace ARDOUR { LIBARDOUR_API void reset_performance_meters (Session*); } -#endif /* __ardour_ardour_h__ */ diff --git a/libs/ardour/ardour/async_midi_port.h b/libs/ardour/ardour/async_midi_port.h index fdc7c1ffad..d7fb9248d8 100644 --- a/libs/ardour/ardour/async_midi_port.h +++ b/libs/ardour/ardour/async_midi_port.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __libardour_async_midiport_h__ -#define __libardour_async_midiport_h__ +#pragma once #include #include @@ -108,4 +107,3 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port { } // namespace ARDOUR -#endif /* __libardour_async_midiport_h__ */ diff --git a/libs/ardour/ardour/audio_backend.h b/libs/ardour/ardour/audio_backend.h index 5986b895e4..4d9140ddfb 100644 --- a/libs/ardour/ardour/audio_backend.h +++ b/libs/ardour/ardour/audio_backend.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __libardour_audiobackend_h__ -#define __libardour_audiobackend_h__ +#pragma once #include #include @@ -841,4 +840,3 @@ protected: } // namespace ARDOUR -#endif /* __libardour_audiobackend_h__ */ diff --git a/libs/ardour/ardour/audio_buffer.h b/libs/ardour/ardour/audio_buffer.h index bec4bdd7cc..d891e6d9fa 100644 --- a/libs/ardour/ardour/audio_buffer.h +++ b/libs/ardour/ardour/audio_buffer.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_buffer_h__ -#define __ardour_audio_buffer_h__ +#pragma once #include @@ -268,4 +267,3 @@ private: } // namespace ARDOUR -#endif // __ardour_audio_audio_buffer_h__ diff --git a/libs/ardour/ardour/audio_library.h b/libs/ardour/ardour/audio_library.h index 6c495a80ce..8d7892f9a3 100644 --- a/libs/ardour/ardour/audio_library.h +++ b/libs/ardour/ardour/audio_library.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_library_h__ -#define __ardour_audio_library_h__ +#pragma once #include #include @@ -51,4 +50,3 @@ LIBARDOUR_API extern AudioLibrary* Library; } // ARDOUR namespace -#endif // __ardour_audio_library_h__ diff --git a/libs/ardour/ardour/audio_playlist_importer.h b/libs/ardour/ardour/audio_playlist_importer.h index ee767e63fd..3652e1de53 100644 --- a/libs/ardour/ardour/audio_playlist_importer.h +++ b/libs/ardour/ardour/audio_playlist_importer.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_playlist_importer_h__ -#define __ardour_audio_playlist_importer_h__ +#pragma once #include #include @@ -96,4 +95,3 @@ class LIBARDOUR_API AudioPlaylistImporter : public ElementImporter } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/audio_playlist_source.h b/libs/ardour/ardour/audio_playlist_source.h index f973dfa4d0..e2eeb78a8d 100644 --- a/libs/ardour/ardour/audio_playlist_source.h +++ b/libs/ardour/ardour/audio_playlist_source.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_playlist_source_h__ -#define __ardour_audio_playlist_source_h__ +#pragma once #include #include @@ -69,4 +68,3 @@ private: } /* namespace */ -#endif /* __ardour_audio_playlist_source_h__ */ diff --git a/libs/ardour/ardour/audio_port.h b/libs/ardour/ardour/audio_port.h index ce699e0010..1af5c44b00 100644 --- a/libs/ardour/ardour/audio_port.h +++ b/libs/ardour/ardour/audio_port.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_port_h__ -#define __ardour_audio_port_h__ +#pragma once #include "zita-resampler/vmresampler.h" @@ -71,4 +70,3 @@ private: } // namespace ARDOUR -#endif /* __ardour_audio_port_h__ */ diff --git a/libs/ardour/ardour/audio_region_importer.h b/libs/ardour/ardour/audio_region_importer.h index ba52627539..043ee6f611 100644 --- a/libs/ardour/ardour/audio_region_importer.h +++ b/libs/ardour/ardour/audio_region_importer.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_region_importer_h__ -#define __ardour_audio_region_importer_h__ +#pragma once #include #include @@ -109,4 +108,3 @@ class LIBARDOUR_API AudioRegionImporter : public ElementImporter } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/audio_track.h b/libs/ardour/ardour/audio_track.h index a367a34af6..b813d91314 100644 --- a/libs/ardour/ardour/audio_track.h +++ b/libs/ardour/ardour/audio_track.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_track_h__ -#define __ardour_audio_track_h__ +#pragma once #include "ardour/interthread_info.h" #include "ardour/track.h" @@ -64,4 +63,3 @@ class LIBARDOUR_API AudioTrack : public Track } // namespace ARDOUR -#endif /* __ardour_audio_track_h__ */ diff --git a/libs/ardour/ardour/audio_track_importer.h b/libs/ardour/ardour/audio_track_importer.h index ea5a97152e..42cf4f28e0 100644 --- a/libs/ardour/ardour/audio_track_importer.h +++ b/libs/ardour/ardour/audio_track_importer.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_track_importer_h__ -#define __ardour_audio_track_importer_h__ +#pragma once #include @@ -84,4 +83,3 @@ class LIBARDOUR_API AudioTrackImporter : public ElementImporter } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/audio_unit.h b/libs/ardour/ardour/audio_unit.h index 6ce63b00c9..bac73b9e7d 100644 --- a/libs/ardour/ardour/audio_unit.h +++ b/libs/ardour/ardour/audio_unit.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_unit_h__ -#define __ardour_audio_unit_h__ +#pragma once #include #include @@ -272,4 +271,3 @@ typedef std::shared_ptr AUPluginInfoPtr; } // namespace ARDOUR -#endif // __ardour_audio_unit_h__ diff --git a/libs/ardour/ardour/audioanalyser.h b/libs/ardour/ardour/audioanalyser.h index 283910ea61..912d980289 100644 --- a/libs/ardour/ardour/audioanalyser.h +++ b/libs/ardour/ardour/audioanalyser.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audioanalyser_h__ -#define __ardour_audioanalyser_h__ +#pragma once #include #include @@ -72,4 +71,3 @@ class LIBARDOUR_API AudioAnalyser : public boost::noncopyable { } /* namespace */ -#endif /* __ardour_audioanalyser_h__ */ diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index cc1b0db6bc..3941396ee6 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audioengine_h__ -#define __ardour_audioengine_h__ +#pragma once #ifdef WAF_BUILD #include "libardour-config.h" @@ -329,4 +328,3 @@ class LIBARDOUR_API AudioEngine : public PortManager, public SessionHandlePtr } // namespace ARDOUR -#endif /* __ardour_audioengine_h__ */ diff --git a/libs/ardour/ardour/audiofile_tagger.h b/libs/ardour/ardour/audiofile_tagger.h index 7a299dbdd3..0b76611207 100644 --- a/libs/ardour/ardour/audiofile_tagger.h +++ b/libs/ardour/ardour/audiofile_tagger.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audiofile_tagger_h__ -#define __ardour_audiofile_tagger_h__ +#pragma once #include @@ -51,4 +50,3 @@ private: } // namespace ARDOUR -#endif /* __ardour_audiofile_tagger_h__ */ diff --git a/libs/ardour/ardour/audiofilesource.h b/libs/ardour/ardour/audiofilesource.h index 614b26d279..2ccbad390b 100644 --- a/libs/ardour/ardour/audiofilesource.h +++ b/libs/ardour/ardour/audiofilesource.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audiofilesource_h__ -#define __ardour_audiofilesource_h__ +#pragma once #include #include @@ -117,5 +116,4 @@ protected: } // namespace ARDOUR -#endif /* __ardour_audiofilesource_h__ */ diff --git a/libs/ardour/ardour/audioplaylist.h b/libs/ardour/ardour/audioplaylist.h index f85506c780..d9e5c1cc74 100644 --- a/libs/ardour/ardour/audioplaylist.h +++ b/libs/ardour/ardour/audioplaylist.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_playlist_h__ -#define __ardour_audio_playlist_h__ +#pragma once #include #include @@ -63,4 +62,3 @@ private: } /* namespace ARDOUR */ -#endif /* __ardour_audio_playlist_h__ */ diff --git a/libs/ardour/ardour/audioregion.h b/libs/ardour/ardour/audioregion.h index 07a6e99dec..182c001703 100644 --- a/libs/ardour/ardour/audioregion.h +++ b/libs/ardour/ardour/audioregion.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_region_h__ -#define __ardour_audio_region_h__ +#pragma once #include #include @@ -301,4 +300,3 @@ extern "C" { LIBARDOUR_API uint32_t sourcefile_length_from_c (void *arg, double); } -#endif /* __ardour_audio_region_h__ */ diff --git a/libs/ardour/ardour/audiorom.h b/libs/ardour/ardour/audiorom.h index 248ed3f9bc..03e7f941c3 100644 --- a/libs/ardour/ardour/audiorom.h +++ b/libs/ardour/ardour/audiorom.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_rom_h__ -#define __ardour_audio_rom_h__ +#pragma once #include "ardour/libardour_visibility.h" #include "ardour/readable.h" @@ -47,4 +46,3 @@ private: } -#endif /* __ardour_readable_h__ */ diff --git a/libs/ardour/ardour/audiosource.h b/libs/ardour/ardour/audiosource.h index de1c612980..96f4938e3f 100644 --- a/libs/ardour/ardour/audiosource.h +++ b/libs/ardour/ardour/audiosource.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_audio_source_h__ -#define __ardour_audio_source_h__ +#pragma once #include @@ -162,4 +161,3 @@ class LIBARDOUR_API AudioSource : virtual public Source, public ARDOUR::AudioRea } -#endif /* __ardour_audio_source_h__ */ diff --git a/libs/ardour/ardour/auditioner.h b/libs/ardour/ardour/auditioner.h index 02b44bc5c5..76c1d30b09 100644 --- a/libs/ardour/ardour/auditioner.h +++ b/libs/ardour/ardour/auditioner.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_auditioner_h__ -#define __ardour_auditioner_h__ +#pragma once #include @@ -141,4 +140,3 @@ private: }; /* namespace ARDOUR */ -#endif /* __ardour_auditioner_h__ */ diff --git a/libs/ardour/ardour/auto_bundle.h b/libs/ardour/ardour/auto_bundle.h index 589590a337..2a49575023 100644 --- a/libs/ardour/ardour/auto_bundle.h +++ b/libs/ardour/ardour/auto_bundle.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_auto_bundle_h__ -#define __ardour_auto_bundle_h__ +#pragma once #include #include @@ -43,4 +42,3 @@ class LIBARDOUR_API AutoBundle : public Bundle { } -#endif /* __ardour_auto_bundle_h__ */ diff --git a/libs/ardour/ardour/automatable.h b/libs/ardour/ardour/automatable.h index 10d31bc127..3b0fb9f35b 100644 --- a/libs/ardour/ardour/automatable.h +++ b/libs/ardour/ardour/automatable.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_automatable_h__ -#define __ardour_automatable_h__ +#pragma once #include #include @@ -149,4 +148,3 @@ private: } // namespace ARDOUR -#endif /* __ardour_automatable_h__ */ diff --git a/libs/ardour/ardour/automatable_sequence.h b/libs/ardour/ardour/automatable_sequence.h index a01a35d627..9812c93271 100644 --- a/libs/ardour/ardour/automatable_sequence.h +++ b/libs/ardour/ardour/automatable_sequence.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_automatable_sequence_h__ -#define __ardour_automatable_sequence_h__ +#pragma once #include "evoral/Sequence.h" #include "ardour/automatable.h" @@ -46,5 +45,4 @@ public: } // namespace ARDOUR -#endif /* __ardour_automatable_sequence_h__ */ diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index 8c10d407c1..f7053feca2 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_automation_control_h__ -#define __ardour_automation_control_h__ +#pragma once #include #include @@ -180,4 +179,3 @@ private: } // namespace ARDOUR -#endif /* __ardour_automation_control_h__ */ diff --git a/libs/ardour/ardour/automation_list.h b/libs/ardour/ardour/automation_list.h index 5d025e7517..2115d4b356 100644 --- a/libs/ardour/ardour/automation_list.h +++ b/libs/ardour/ardour/automation_list.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_automation_event_h__ -#define __ardour_automation_event_h__ +#pragma once #include #include @@ -147,4 +146,3 @@ private: } // namespace -#endif /* __ardour_automation_event_h__ */ diff --git a/libs/ardour/ardour/automation_watch.h b/libs/ardour/ardour/automation_watch.h index 71756f24da..409834ce6c 100644 --- a/libs/ardour/ardour/automation_watch.h +++ b/libs/ardour/ardour/automation_watch.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_automation_watch_h__ -#define __ardour_automation_watch_h__ +#pragma once #include #include @@ -70,4 +69,3 @@ private: } /* namespace */ -#endif // __ardour_automation_watch_h__ diff --git a/libs/ardour/ardour/beatbox.h b/libs/ardour/ardour/beatbox.h index e8dd62c12d..a9e57dd8af 100644 --- a/libs/ardour/ardour/beatbox.h +++ b/libs/ardour/ardour/beatbox.h @@ -17,8 +17,7 @@ */ -#ifndef __ardour_beatbox_h__ -#define __ardour_beatbox_h__ +#pragma once #include #include @@ -71,4 +70,3 @@ class BeatBox : public ARDOUR::Processor { } /* namespace */ -#endif /* __ardour_beatbox_h__ */ diff --git a/libs/ardour/ardour/boost_debug.h b/libs/ardour/ardour/boost_debug.h index 132c17cd02..3bbd059918 100644 --- a/libs/ardour/ardour/boost_debug.h +++ b/libs/ardour/ardour/boost_debug.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __libardour_boost_debug_h__ -#define __libardour_boost_debug_h__ +#pragma once #include "pbd/boost_debug.h" @@ -45,4 +44,3 @@ #define BOOST_SHOW_POINTERS() #endif -#endif /* __libardour_boost_debug_h__ */ diff --git a/libs/ardour/ardour/broadcast_info.h b/libs/ardour/ardour/broadcast_info.h index bd7847c1a5..326e0e85f0 100644 --- a/libs/ardour/ardour/broadcast_info.h +++ b/libs/ardour/ardour/broadcast_info.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_broadcast_info_h__ -#define __ardour_broadcast_info_h__ +#pragma once #include @@ -46,4 +45,3 @@ class LIBARDOUR_API BroadcastInfo : public AudioGrapher::BroadcastInfo } // namespace ARDOUR -#endif /* __ardour_broadcast_info_h__ */ diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h index 14a406d736..bb95968ef5 100644 --- a/libs/ardour/ardour/buffer.h +++ b/libs/ardour/ardour/buffer.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_buffer_h__ -#define __ardour_buffer_h__ +#pragma once #include @@ -91,4 +90,3 @@ public: } // namespace ARDOUR -#endif // __ardour_buffer_h__ diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h index 95b40958f5..2e17c10086 100644 --- a/libs/ardour/ardour/buffer_set.h +++ b/libs/ardour/ardour/buffer_set.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_buffer_set_h__ -#define __ardour_buffer_set_h__ +#pragma once #ifdef WAF_BUILD #include "libardour-config.h" @@ -229,4 +228,3 @@ private: } // namespace ARDOUR -#endif // __ardour_buffer_set_h__ diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index 49c8ffc6f0..9c4c91a1f1 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_bundle_h__ -#define __ardour_bundle_h__ +#pragma once #include #include @@ -183,4 +182,3 @@ public: std::ostream & operator<< (std::ostream & o, ARDOUR::Bundle const &); -#endif /* __ardour_bundle_h__ */ diff --git a/libs/ardour/ardour/butler.h b/libs/ardour/ardour/butler.h index 7c7d33f62c..b56997786b 100644 --- a/libs/ardour/ardour/butler.h +++ b/libs/ardour/ardour/butler.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_butler_h__ -#define __ardour_butler_h__ +#pragma once #include @@ -122,4 +121,3 @@ private: } // namespace ARDOUR -#endif // __ardour_butler_h__ diff --git a/libs/ardour/ardour/caimportable.h b/libs/ardour/ardour/caimportable.h index f39a84a38c..9c78cedec3 100644 --- a/libs/ardour/ardour/caimportable.h +++ b/libs/ardour/ardour/caimportable.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_ca_importable_source_h__ -#define __ardour_ca_importable_source_h__ +#pragma once #include "pbd/failed_constructor.h" #include "ardour/libardour_visibility.h" @@ -56,4 +55,3 @@ class LIBARDOUR_API CAImportableSource : public ImportableSource { } -#endif /* __ardour_ca_importable_source_h__ */ diff --git a/libs/ardour/ardour/capturing_processor.h b/libs/ardour/ardour/capturing_processor.h index fb8354a517..77a8dd1a0c 100644 --- a/libs/ardour/ardour/capturing_processor.h +++ b/libs/ardour/ardour/capturing_processor.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_capturing_processor_h__ -#define __ardour_capturing_processor_h__ +#pragma once #include "ardour/fixed_delay.h" #include "ardour/processor.h" @@ -56,4 +55,3 @@ private: } // namespace ARDOUR -#endif // __ardour_capturing_processor_h__ diff --git a/libs/ardour/ardour/chan_count.h b/libs/ardour/ardour/chan_count.h index a62d5dc70f..87d5fbf066 100644 --- a/libs/ardour/ardour/chan_count.h +++ b/libs/ardour/ardour/chan_count.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_chan_count_h__ -#define __ardour_chan_count_h__ +#pragma once #include #include @@ -216,5 +215,4 @@ private: LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::ChanCount& c); -#endif // __ardour_chan_count_h__ diff --git a/libs/ardour/ardour/chan_mapping.h b/libs/ardour/ardour/chan_mapping.h index 21838a1221..7a17e48499 100644 --- a/libs/ardour/ardour/chan_mapping.h +++ b/libs/ardour/ardour/chan_mapping.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_chan_mapping_h__ -#define __ardour_chan_mapping_h__ +#pragma once #include #include @@ -140,5 +139,4 @@ private: std::ostream& operator<<(std::ostream& o, const ARDOUR::ChanMapping& m); -#endif // __ardour_chan_mapping_h__ diff --git a/libs/ardour/ardour/click.h b/libs/ardour/ardour/click.h index 3af2f16e34..b0aa8545fd 100644 --- a/libs/ardour/ardour/click.h +++ b/libs/ardour/ardour/click.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_click_h__ -#define __ardour_click_h__ +#pragma once #include @@ -63,4 +62,3 @@ protected: }; /* namespace ARDOUR */ -#endif /*__ardour_click_h__ */ diff --git a/libs/ardour/ardour/comparable_shared_ptr.h b/libs/ardour/ardour/comparable_shared_ptr.h index 526e449d21..e670225575 100644 --- a/libs/ardour/ardour/comparable_shared_ptr.h +++ b/libs/ardour/ardour/comparable_shared_ptr.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_comparable_shared_ptr_h__ -#define __ardour_comparable_shared_ptr_h__ +#pragma once #include "ardour/libardour_visibility.h" @@ -60,4 +59,3 @@ class /*LIBARDOUR_API*/ ComparableSharedPtr : public std::shared_ptr } // namespace ARDOUR -#endif // __ardour_comparable_shared_ptr_h__ diff --git a/libs/ardour/ardour/control_group.h b/libs/ardour/ardour/control_group.h index b053ce063e..df74837809 100644 --- a/libs/ardour/ardour/control_group.h +++ b/libs/ardour/ardour/control_group.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __libardour_control_group_h__ -#define __libardour_control_group_h__ +#pragma once #include #include @@ -114,4 +113,3 @@ class LIBARDOUR_API GainControlGroup : public ControlGroup } /* namespace */ -#endif /* __libardour_control_group_h__ */ diff --git a/libs/ardour/ardour/control_group_member.h b/libs/ardour/ardour/control_group_member.h index 4729278dec..ca7e013efb 100644 --- a/libs/ardour/ardour/control_group_member.h +++ b/libs/ardour/ardour/control_group_member.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __libardour_control_group_member_h__ -#define __libardour_control_group_member_h__ +#pragma once namespace ARDOUR { @@ -39,4 +38,3 @@ class LIBARDOUR_API ControlGroupMember } /* namespace */ -#endif /* __libardour_control_group_member_h__ */ diff --git a/libs/ardour/ardour/coreaudiosource.h b/libs/ardour/ardour/coreaudiosource.h index c75e226d98..2cc0dead0e 100644 --- a/libs/ardour/ardour/coreaudiosource.h +++ b/libs/ardour/ardour/coreaudiosource.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __coreaudio_source_h__ -#define __coreaudio_source_h__ +#pragma once #ifdef COREAUDIO105 #include "CAAudioFile.h" @@ -72,5 +71,4 @@ class LIBARDOUR_API CoreAudioSource : public AudioFileSource { }; /* namespace ARDOUR */ -#endif /* __coreaudio_source_h__ */ diff --git a/libs/ardour/ardour/cycle_timer.h b/libs/ardour/ardour/cycle_timer.h index e9f20c3501..29cc76b768 100644 --- a/libs/ardour/ardour/cycle_timer.h +++ b/libs/ardour/ardour/cycle_timer.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_cycle_timer_h__ -#define __ardour_cycle_timer_h__ +#pragma once #include #include @@ -95,4 +94,3 @@ extern StoringTimer ST; #define PT_TIMING_CHECK(x) #endif -#endif /* __ardour_cycle_timer_h__ */ diff --git a/libs/ardour/ardour/cycles.h b/libs/ardour/ardour/cycles.h index 4d4920219e..4cfac2367a 100644 --- a/libs/ardour/ardour/cycles.h +++ b/libs/ardour/ardour/cycles.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_cycles_h__ -#define __ardour_cycles_h__ +#pragma once #include @@ -252,4 +251,3 @@ static inline cycles_t get_cycles(void) #endif -#endif /* __ardour_cycles_h__ */ diff --git a/libs/ardour/ardour/data_type.h b/libs/ardour/ardour/data_type.h index 5eae0dfbb3..54a8619d6f 100644 --- a/libs/ardour/ardour/data_type.h +++ b/libs/ardour/ardour/data_type.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_data_type_h__ -#define __ardour_data_type_h__ +#pragma once #include #include @@ -127,5 +126,4 @@ private: } // namespace ARDOUR -#endif // __ardour_data_type_h__ diff --git a/libs/ardour/ardour/debug.h b/libs/ardour/ardour/debug.h index 3e6f2661fa..0500f96f4f 100644 --- a/libs/ardour/ardour/debug.h +++ b/libs/ardour/ardour/debug.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_debug_h__ -#define __ardour_debug_h__ +#pragma once #include @@ -120,4 +119,3 @@ namespace PBD { } } -#endif /* __ardour_debug_h__ */ diff --git a/libs/ardour/ardour/delayline.h b/libs/ardour/ardour/delayline.h index 8710b58e6d..2f23fff7a4 100644 --- a/libs/ardour/ardour/delayline.h +++ b/libs/ardour/ardour/delayline.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_delayline_h__ -#define __ardour_delayline_h__ +#pragma once #include @@ -81,4 +80,3 @@ private: } // namespace ARDOUR -#endif // __ardour_meter_h__ diff --git a/libs/ardour/ardour/delivery.h b/libs/ardour/ardour/delivery.h index 05db44f797..4e2efc997c 100644 --- a/libs/ardour/ardour/delivery.h +++ b/libs/ardour/ardour/delivery.h @@ -20,8 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_delivery_h__ -#define __ardour_delivery_h__ +#pragma once #include @@ -166,5 +165,4 @@ private: } // namespace ARDOUR -#endif // __ardour__h__ diff --git a/libs/ardour/ardour/directory_names.h b/libs/ardour/ardour/directory_names.h index ea04a8db0b..f55fc47c45 100644 --- a/libs/ardour/ardour/directory_names.h +++ b/libs/ardour/ardour/directory_names.h @@ -20,8 +20,7 @@ */ -#ifndef __ardour_directory_names_h__ -#define __ardour_directory_names_h__ +#pragma once #include "ardour/libardour_visibility.h" @@ -57,4 +56,3 @@ namespace ARDOUR { }; -#endif diff --git a/libs/ardour/ardour/disk_io.h b/libs/ardour/ardour/disk_io.h index 6c3e4dc807..0a6604ac85 100644 --- a/libs/ardour/ardour/disk_io.h +++ b/libs/ardour/ardour/disk_io.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_disk_io_h__ -#define __ardour_disk_io_h__ +#pragma once #include #include @@ -192,4 +191,3 @@ protected: } // namespace ARDOUR -#endif /* __ardour_disk_io_h__ */ diff --git a/libs/ardour/ardour/disk_writer.h b/libs/ardour/ardour/disk_writer.h index bef6d77966..71f930138d 100644 --- a/libs/ardour/ardour/disk_writer.h +++ b/libs/ardour/ardour/disk_writer.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_disk_writer_h__ -#define __ardour_disk_writer_h__ +#pragma once #include #include @@ -208,4 +207,3 @@ private: } // namespace -#endif /* __ardour_disk_writer_h__ */ diff --git a/libs/ardour/ardour/ebur128_analysis.h b/libs/ardour/ardour/ebur128_analysis.h index 23145d8b9f..98e3f10d79 100644 --- a/libs/ardour/ardour/ebur128_analysis.h +++ b/libs/ardour/ardour/ebur128_analysis.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_ebur128_analysis_h__ -#define __ardour_ebur128_analysis_h__ +#pragma once #include "ardour/audioanalyser.h" #include "ardour/readable.h" @@ -49,4 +48,3 @@ private: } /* namespace */ -#endif /* __ardour_audioanalyser_h__ */ diff --git a/libs/ardour/ardour/element_import_handler.h b/libs/ardour/ardour/element_import_handler.h index 0aa26a7cb3..4ca8102069 100644 --- a/libs/ardour/ardour/element_import_handler.h +++ b/libs/ardour/ardour/element_import_handler.h @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_element_import_handler_h__ -#define __ardour_element_import_handler_h__ +#pragma once #include #include @@ -109,4 +108,3 @@ class LIBARDOUR_API ElementImportHandler } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/element_importer.h b/libs/ardour/ardour/element_importer.h index 903152c6fa..2e0f0ff5a0 100644 --- a/libs/ardour/ardour/element_importer.h +++ b/libs/ardour/ardour/element_importer.h @@ -19,8 +19,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_element_importer_h__ -#define __ardour_element_importer_h__ +#pragma once #include #include @@ -132,4 +131,3 @@ class LIBARDOUR_API ElementImporter } // namespace ARDOUR -#endif diff --git a/libs/ardour/ardour/event_ring_buffer.h b/libs/ardour/ardour/event_ring_buffer.h index 1d47cbbcbf..555a2b293d 100644 --- a/libs/ardour/ardour/event_ring_buffer.h +++ b/libs/ardour/ardour/event_ring_buffer.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_event_ring_buffer_h__ -#define __ardour_event_ring_buffer_h__ +#pragma once #include #include @@ -132,4 +131,3 @@ EventRingBuffer