diff --git a/src/transport/BLE.h b/src/transport/BLE.h index cc16c126f6853f..7b156adcf5c240 100644 --- a/src/transport/BLE.h +++ b/src/transport/BLE.h @@ -22,8 +22,7 @@ * */ -#ifndef __TRANSPORT_BLE_H__ -#define __TRANSPORT_BLE_H__ +#pragma once #include @@ -111,5 +110,3 @@ class DLL_EXPORT BLE : public Base } // namespace Transport } // namespace chip - -#endif // __TRANSPORT_BLE_H__ diff --git a/src/transport/NetworkProvisioning.h b/src/transport/NetworkProvisioning.h index b81fd20ce9dbf6..6adc2c9f743d75 100644 --- a/src/transport/NetworkProvisioning.h +++ b/src/transport/NetworkProvisioning.h @@ -21,8 +21,7 @@ * */ -#ifndef __CHIP_NETWORK_PROVISIONING_H__ -#define __CHIP_NETWORK_PROVISIONING_H__ +#pragma once #include #include @@ -137,4 +136,3 @@ class DLL_EXPORT NetworkProvisioning }; } // namespace chip -#endif // __CHIP_NETWORK_PROVISIONING_H__ diff --git a/src/transport/PeerConnectionState.h b/src/transport/PeerConnectionState.h index 93264f1e98dabd..e44e6e33eb6d1f 100644 --- a/src/transport/PeerConnectionState.h +++ b/src/transport/PeerConnectionState.h @@ -19,8 +19,7 @@ * @brief Defines state relevant for an active connection to a peer. */ -#ifndef PEER_CONNCTION_STATE_H_ -#define PEER_CONNCTION_STATE_H_ +#pragma once #include #include @@ -106,5 +105,3 @@ class PeerConnectionState } // namespace Transport } // namespace chip - -#endif // PEER_CONNCTION_STATE_H_ diff --git a/src/transport/RendezvousParameters.h b/src/transport/RendezvousParameters.h index 33053e6d3074f5..08bf56f0a9cd14 100644 --- a/src/transport/RendezvousParameters.h +++ b/src/transport/RendezvousParameters.h @@ -15,8 +15,7 @@ * limitations under the License. */ -#ifndef __TRANSPORT_RENDEZVOUSPARAMETERS_H__ -#define __TRANSPORT_RENDEZVOUSPARAMETERS_H__ +#pragma once #include @@ -91,5 +90,3 @@ class RendezvousParameters }; } // namespace chip - -#endif // __TRANSPORT_RENDEZVOUSPARAMETERS_H__ diff --git a/src/transport/RendezvousSession.h b/src/transport/RendezvousSession.h index c72d7a18bbfb58..9f1a8e92bfbb1f 100644 --- a/src/transport/RendezvousSession.h +++ b/src/transport/RendezvousSession.h @@ -20,9 +20,7 @@ * This file defines the CHIP RendezvousSession object that maintains a Rendezvous session. * */ - -#ifndef __TRANSPORT_RENDEZVOUSSESSION_H__ -#define __TRANSPORT_RENDEZVOUSSESSION_H__ +#pragma once #include #include @@ -147,4 +145,3 @@ class RendezvousSession : public SecurePairingSessionDelegate, }; } // namespace chip -#endif // __TRANSPORT_RENDEZVOUSSESSION_H__ diff --git a/src/transport/RendezvousSessionDelegate.h b/src/transport/RendezvousSessionDelegate.h index f0fcb06cd75cff..490035baeefe3b 100644 --- a/src/transport/RendezvousSessionDelegate.h +++ b/src/transport/RendezvousSessionDelegate.h @@ -15,8 +15,7 @@ * limitations under the License. */ -#ifndef __TRANSPORT_RENDEZVOUSSESSIONCALLBACK_H__ -#define __TRANSPORT_RENDEZVOUSSESSIONCALLBACK_H__ +#pragma once #include @@ -52,5 +51,3 @@ class DLL_EXPORT RendezvousDeviceCredentialsDelegate }; } // namespace chip - -#endif // __TRANSPORT_RENDEZVOUSSESSIONCALLBACK_H__ diff --git a/src/transport/SecurePairingSession.h b/src/transport/SecurePairingSession.h index 005284e61b21a6..0ca28629381009 100644 --- a/src/transport/SecurePairingSession.h +++ b/src/transport/SecurePairingSession.h @@ -24,8 +24,7 @@ * */ -#ifndef __SECUREPAIRINGSESSION_H__ -#define __SECUREPAIRINGSESSION_H__ +#pragma once #include #include @@ -250,5 +249,3 @@ class SecurePairingUsingTestSecret : public SecurePairingSession }; } // namespace chip - -#endif // __SECUREPAIRINGSESSION_H__ diff --git a/src/transport/SecureSession.h b/src/transport/SecureSession.h index 80a7e8a6ffdda0..ac8da5d9ffc28b 100644 --- a/src/transport/SecureSession.h +++ b/src/transport/SecureSession.h @@ -23,8 +23,7 @@ * */ -#ifndef __SECURESESSION_H__ -#define __SECURESESSION_H__ +#pragma once #include #include @@ -134,5 +133,3 @@ class DLL_EXPORT SecureSession }; } // namespace chip - -#endif // __SECURESESSION_H__ diff --git a/src/transport/SecureSessionMgr.h b/src/transport/SecureSessionMgr.h index 714a9d13a11f16..173b70cb6f51b1 100644 --- a/src/transport/SecureSessionMgr.h +++ b/src/transport/SecureSessionMgr.h @@ -23,8 +23,7 @@ * */ -#ifndef __SECURESESSIONMGR_H__ -#define __SECURESESSIONMGR_H__ +#pragma once #include @@ -217,5 +216,3 @@ class SecureSessionMgr : public SecureSessionMgrBase }; } // namespace chip - -#endif // __SECURESESSIONMGR_H__ diff --git a/src/transport/raw/Base.h b/src/transport/raw/Base.h index c68e3327ce97b3..da20fc3ba45fec 100644 --- a/src/transport/raw/Base.h +++ b/src/transport/raw/Base.h @@ -21,8 +21,7 @@ * classes (UDP, TCP, BLE, ....) */ -#ifndef TRANSPORT_BASE_H_ -#define TRANSPORT_BASE_H_ +#pragma once #include #include @@ -118,5 +117,3 @@ class Base : public ReferenceCounted } // namespace Transport } // namespace chip - -#endif // TRANSPORT_BASE_H_ diff --git a/src/transport/raw/PeerAddress.h b/src/transport/raw/PeerAddress.h index cf63064673ae71..febc65c9580fda 100644 --- a/src/transport/raw/PeerAddress.h +++ b/src/transport/raw/PeerAddress.h @@ -21,8 +21,7 @@ * */ -#ifndef PEER_ADDRESS_H_ -#define PEER_ADDRESS_H_ +#pragma once #include @@ -171,5 +170,3 @@ class PeerAddress } // namespace Transport } // namespace chip - -#endif // PEER_ADDRESS_H_ diff --git a/src/transport/raw/TCP.h b/src/transport/raw/TCP.h index c1eb2bc1273fe6..0888e3adf4a358 100644 --- a/src/transport/raw/TCP.h +++ b/src/transport/raw/TCP.h @@ -22,8 +22,7 @@ * It binds to any available local addr and port and begins listening. */ -#ifndef __TCPTRANSPORT_H__ -#define __TCPTRANSPORT_H__ +#pragma once #include #include @@ -247,5 +246,3 @@ class TCP : public TCPBase } // namespace Transport } // namespace chip - -#endif // __TCPTRANSPORT_H__ diff --git a/src/transport/raw/Tuple.h b/src/transport/raw/Tuple.h index 85dffc88f6a52e..bd887ba52fcaee 100644 --- a/src/transport/raw/Tuple.h +++ b/src/transport/raw/Tuple.h @@ -21,8 +21,7 @@ * Defines a compound transport type (tuple) that can merge several transports * to look like a single one. */ -#ifndef TRANSPORT_TUPLE_H_ -#define TRANSPORT_TUPLE_H_ +#pragma once #include #include @@ -238,5 +237,3 @@ class Tuple : public Base } // namespace Transport } // namespace chip - -#endif // TRANSPORT_TUPLE_H_ diff --git a/src/transport/raw/UDP.h b/src/transport/raw/UDP.h index 72b57b0f6d0edb..d2dfcc36ad5812 100644 --- a/src/transport/raw/UDP.h +++ b/src/transport/raw/UDP.h @@ -23,8 +23,7 @@ * */ -#ifndef __UDPTRANSPORT_H__ -#define __UDPTRANSPORT_H__ +#pragma once #include @@ -126,5 +125,3 @@ class DLL_EXPORT UDP : public Base } // namespace Transport } // namespace chip - -#endif // __UDPTRANSPORT_H__ diff --git a/src/transport/retransmit/Cache.h b/src/transport/retransmit/Cache.h index c70ca1f77dced8..16227259b58743 100644 --- a/src/transport/retransmit/Cache.h +++ b/src/transport/retransmit/Cache.h @@ -14,8 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef RETRANSIMIT_CACHE_H_ -#define RETRANSIMIT_CACHE_H_ +#pragma once #include #include @@ -177,5 +176,3 @@ class Cache } // namespace Retransmit } // namespace chip - -#endif // RETRANSIMIT_CACHE_H_ diff --git a/src/transport/tests/TestTransportLayer.h b/src/transport/tests/TestTransportLayer.h index 61c78781688bfb..9e7588355080ad 100644 --- a/src/transport/tests/TestTransportLayer.h +++ b/src/transport/tests/TestTransportLayer.h @@ -22,8 +22,7 @@ * */ -#ifndef TESTTRANSPORTLAYER_H -#define TESTTRANSPORTLAYER_H +#pragma once #ifdef __cplusplus extern "C" { @@ -40,5 +39,3 @@ int TestUDP(void); #ifdef __cplusplus } #endif - -#endif // TESTTRANSPORTLAYER_H