the great onceification (libs)

Replace use of #ifndef header guards with #pragma once

Modern C++, baby!
This commit is contained in:
Paul Davis 2024-09-25 18:38:49 -06:00
parent 8fbec13e9c
commit 75f56cd3e1
379 changed files with 381 additions and 1138 deletions

View file

@ -18,8 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __ardour_gtk_doi_h__
#define __ardour_gtk_doi_h__
#pragma once
#ifdef interface
#undef interface
@ -41,4 +40,3 @@ template<typename T> /*LIBGTKMM2EXT_API*/ gint delete_on_unmap (GdkEventAny *ign
return FALSE;
}
#endif /* __ardour_gtk_doi_h__ */

View file

@ -21,8 +21,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __pbd_gtk_ui_h__
#define __pbd_gtk_ui_h__
#pragma once
#include <string>
#include <map>
@ -206,4 +205,3 @@ private:
} /* namespace */
#endif /* __pbd_gtk_ui_h__ */

View file

@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __gtkutils_h__
#define __gtkutils_h__
#pragma once
#include <string>
@ -31,4 +30,3 @@ LIBGTKMM2EXT_API void gtk_set_size_request_to_display_given_text (Gtk::Widget& w
const std::string& text,
gint hpadding = 0,
gint vpadding = 0);
#endif /* __gtkutils_h__ */

View file

@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __ardour_gtk_gui_thread_h__
#define __ardour_gtk_gui_thread_h__
#pragma once
#include <cstdlib>
#include <gtkmm2ext/gtk_ui.h>
@ -33,4 +32,3 @@
#define invalidator(x) PBD::EventLoop::__invalidator ((x), __FILE__, __LINE__)
#endif /* __ardour_gtk_gui_thread_h__ */

View file

@ -17,8 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __pbd_gtkmm_textviewer_h__
#define __pbd_gtkmm_textviewer_h__
#pragma once
#include <string>
@ -59,4 +58,3 @@ class LIBGTKMM2EXT_API TextViewer : public Gtk::Window, public Transmitter
} /* namespace */
#endif // __pbd_gtkmm_textviewer_h__