From f1643a1231f1115997884df000df8951e2bfab25 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 2 Feb 2016 21:18:54 +0100 Subject: [PATCH] [DEV] replace 'include guard' with 'pragma once' --- audio/river/Interface.h | 7 +------ audio/river/Manager.h | 5 +---- audio/river/debug.h | 8 +------- audio/river/debugRemove.h | 6 +----- audio/river/io/Group.h | 5 +---- audio/river/io/Manager.h | 6 +----- audio/river/io/Node.h | 6 +----- audio/river/io/NodeAEC.h | 6 +----- audio/river/io/NodeFile.h | 7 +------ audio/river/io/NodeMuxer.h | 6 +----- audio/river/io/NodeOrchestra.h | 7 +------ audio/river/io/NodePortAudio.h | 6 +----- audio/river/river.h | 6 +----- sample/ioViewer/appl/Windows.h | 8 ++------ sample/ioViewer/appl/debug.h | 6 +----- test/testAEC.h | 5 +---- test/testEchoDelay.h | 5 +---- test/testFormat.h | 5 +---- test/testMuxer.h | 5 +---- test/testPlaybackCallback.h | 5 +---- test/testPlaybackWrite.h | 5 +---- test/testRecordCallback.h | 5 +---- test/testRecordRead.h | 5 +---- test/testVolume.h | 5 +---- widget/audio/river/widget/TemporalViewer.h | 5 +---- widget/audio/river/widget/debug.h | 6 +----- 26 files changed, 27 insertions(+), 124 deletions(-) diff --git a/audio/river/Interface.h b/audio/river/Interface.h index e00a663..80aa1ce 100644 --- a/audio/river/Interface.h +++ b/audio/river/Interface.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifndef __AUDIO_RIVER_INTERFACE_H__ -#define __AUDIO_RIVER_INTERFACE_H__ +#pragma once #include #include @@ -330,6 +328,3 @@ namespace audio { }; } } - -#endif - diff --git a/audio/river/Manager.h b/audio/river/Manager.h index dcd5f18..c846d90 100644 --- a/audio/river/Manager.h +++ b/audio/river/Manager.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifndef __AUDIO_RIVER_MANAGER_H__ -#define __AUDIO_RIVER_MANAGER_H__ +#pragma once #include #include @@ -150,4 +148,3 @@ namespace audio { } } -#endif diff --git a/audio/river/debug.h b/audio/river/debug.h index 12793ea..0bbbbf8 100644 --- a/audio/river/debug.h +++ b/audio/river/debug.h @@ -3,10 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - - -#ifndef __AUDIO_RIVER_DEBUG_H__ -#define __AUDIO_RIVER_DEBUG_H__ +#pragma once #include @@ -60,6 +57,3 @@ namespace audio { } \ }while(0) - -#endif - diff --git a/audio/river/debugRemove.h b/audio/river/debugRemove.h index b6c7ab4..e27826f 100644 --- a/audio/river/debugRemove.h +++ b/audio/river/debugRemove.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifdef __AUDIO_RIVER_DEBUG_H__ -#undef __AUDIO_RIVER_DEBUG_H__ +#pragma once #undef RIVER_BASE #undef RIVER_CRITICAL @@ -17,5 +15,3 @@ #undef RIVER_TODO #undef RIVER_ASSERT -#endif - diff --git a/audio/river/io/Group.h b/audio/river/io/Group.h index 1f66868..2ebb403 100644 --- a/audio/river/io/Group.h +++ b/audio/river/io/Group.h @@ -4,8 +4,7 @@ * @license APACHE v2.0 (see license file) */ -#ifndef __AUDIO_RIVER_IO_GROUP_H__ -#define __AUDIO_RIVER_IO_GROUP_H__ +#pragma once #include #include @@ -74,5 +73,3 @@ namespace audio { } } -#endif - diff --git a/audio/river/io/Manager.h b/audio/river/io/Manager.h index dff5ecd..9ba5007 100644 --- a/audio/river/io/Manager.h +++ b/audio/river/io/Manager.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifndef __AUDIO_RIVER_IO_MANAGER_H__ -#define __AUDIO_RIVER_IO_MANAGER_H__ +#pragma once #include #include @@ -153,5 +151,3 @@ namespace audio { } } -#endif - diff --git a/audio/river/io/Node.h b/audio/river/io/Node.h index 139c6ac..cb1654a 100644 --- a/audio/river/io/Node.h +++ b/audio/river/io/Node.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifndef __AUDIO_RIVER_IO_NODE_H__ -#define __AUDIO_RIVER_IO_NODE_H__ +#pragma once #include #include @@ -222,5 +220,3 @@ namespace audio { } } -#endif - diff --git a/audio/river/io/NodeAEC.h b/audio/river/io/NodeAEC.h index b51d65f..5bafdf9 100644 --- a/audio/river/io/NodeAEC.h +++ b/audio/river/io/NodeAEC.h @@ -3,9 +3,7 @@ * @copyright 2015, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ - -#ifndef __AUDIO_RIVER_IO_NODE_AEC_H__ -#define __AUDIO_RIVER_IO_NODE_AEC_H__ +#pragma once #include