From 6db236c25d9408f522d40333d597c63a81ccc19d Mon Sep 17 00:00:00 2001 From: Heiko Thiel Date: Thu, 11 Jul 2019 12:49:01 +0200 Subject: [PATCH] Use pragma once instead of include guards --- include/nmeaparse/Event.h | 5 +---- include/nmeaparse/GPSFix.h | 5 +---- include/nmeaparse/GPSService.h | 5 +---- include/nmeaparse/NMEACommand.h | 5 +---- include/nmeaparse/NMEAParser.h | 6 +----- include/nmeaparse/NumberConversion.h | 8 +------- include/nmeaparse/nmea.h | 11 +---------- 7 files changed, 7 insertions(+), 38 deletions(-) diff --git a/include/nmeaparse/Event.h b/include/nmeaparse/Event.h index b6bbd97..60a373b 100644 --- a/include/nmeaparse/Event.h +++ b/include/nmeaparse/Event.h @@ -7,8 +7,7 @@ * See the license file included with this source. */ -#ifndef EVENT_H_ -#define EVENT_H_ +#pragma once #include #include @@ -213,5 +212,3 @@ namespace nmea { } - -#endif /* EVENT_H_ */ diff --git a/include/nmeaparse/GPSFix.h b/include/nmeaparse/GPSFix.h index da891ba..4731035 100644 --- a/include/nmeaparse/GPSFix.h +++ b/include/nmeaparse/GPSFix.h @@ -7,8 +7,7 @@ * See the license file included with this source. */ -#ifndef GPSFIX_H_ -#define GPSFIX_H_ +#pragma once #include #include @@ -178,5 +177,3 @@ namespace nmea { }; } - -#endif /* GPSFIX_H_ */ diff --git a/include/nmeaparse/GPSService.h b/include/nmeaparse/GPSService.h index 8b9e291..ac7e636 100644 --- a/include/nmeaparse/GPSService.h +++ b/include/nmeaparse/GPSService.h @@ -7,8 +7,7 @@ * See the license file included with this source. */ -#ifndef GPSSERVICE_H_ -#define GPSSERVICE_H_ +#pragma once #include #include @@ -43,5 +42,3 @@ class GPSService { } - -#endif /* GPSSERVICE_H_ */ diff --git a/include/nmeaparse/NMEACommand.h b/include/nmeaparse/NMEACommand.h index 1719687..79c7aed 100644 --- a/include/nmeaparse/NMEACommand.h +++ b/include/nmeaparse/NMEACommand.h @@ -7,8 +7,7 @@ * See the license file included with this source. */ -#ifndef NMEACOMMAND_H_ -#define NMEACOMMAND_H_ +#pragma once #include #include @@ -113,5 +112,3 @@ namespace nmea { } - -#endif /* NMEACOMMAND_H_ */ diff --git a/include/nmeaparse/NMEAParser.h b/include/nmeaparse/NMEAParser.h index d57bb20..14e756f 100644 --- a/include/nmeaparse/NMEAParser.h +++ b/include/nmeaparse/NMEAParser.h @@ -7,9 +7,7 @@ * See the license file included with this source. */ -#ifndef NMEAPARSER_H_ -#define NMEAPARSER_H_ - +#pragma once #include #include @@ -119,5 +117,3 @@ class NMEAParser { }; } - -#endif /* NMEAPARSER_H_ */ diff --git a/include/nmeaparse/NumberConversion.h b/include/nmeaparse/NumberConversion.h index 342d200..62046c5 100644 --- a/include/nmeaparse/NumberConversion.h +++ b/include/nmeaparse/NumberConversion.h @@ -7,9 +7,7 @@ * See the license file included with this source. */ -#ifndef NUMBERCONVERSION_H_ -#define NUMBERCONVERSION_H_ - +#pragma once #include #include @@ -43,7 +41,3 @@ int64_t parseInt(std::string s, int radix = 10); //void NumberConversion_test(); } - - - -#endif /* NUMBERCONVERSION_H_ */ diff --git a/include/nmeaparse/nmea.h b/include/nmeaparse/nmea.h index 811126e..272e828 100644 --- a/include/nmeaparse/nmea.h +++ b/include/nmeaparse/nmea.h @@ -12,19 +12,10 @@ // The implementation of a NMEA 0183 sentence generator. // The implementation of a GPS data service. - -#ifndef NMEA_H_ -#define NMEA_H_ - - +#pragma once #include #include #include #include - - - - -#endif //NMEA_H_