Cleanup: Usage of pragma once instead guard names in headers 96/89196/6
authorRadoslaw Bartosiak <r.bartosiak@samsung.com>
Thu, 22 Sep 2016 11:49:24 +0000 (13:49 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 24 Nov 2016 14:15:50 +0000 (06:15 -0800)
Additionally: fixes in @files, remove of multiple newlines at EOF

Change-Id: I58d8b1e11fbc4709dc61229ea6e83098217c67dd
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
57 files changed:
src/client/include/check-proper-drop.h
src/client/include/client-common.h
src/client/include/client-offline.h
src/common/include/config.h
src/common/include/connection-info.h
src/common/include/connection.h
src/common/include/credentials.h
src/common/include/cynara.h
src/common/include/file-lock.h
src/common/include/filesystem-exception.h
src/common/include/filesystem.h
src/common/include/message-buffer.h
src/common/include/permissible-set.h
src/common/include/pkg-info.h
src/common/include/privilege_db.h
src/common/include/protocols.h
src/common/include/service_impl.h
src/common/include/sharing_info.h
src/common/include/smack-check.h
src/common/include/smack-exceptions.h
src/common/include/smack-labels.h
src/common/include/smack-rules.h
src/common/include/stmt-wrapper.h
src/dpl/core/include/dpl/assert.h
src/dpl/core/include/dpl/availability.h
src/dpl/core/include/dpl/binary_queue.h
src/dpl/core/include/dpl/char_traits.h
src/dpl/core/include/dpl/colors.h
src/dpl/core/include/dpl/errno_string.h
src/dpl/core/include/dpl/exception.h
src/dpl/core/include/dpl/free_deleter.h
src/dpl/core/include/dpl/fstream_accessors.h
src/dpl/core/include/dpl/noncopyable.h
src/dpl/core/include/dpl/noreturn.h
src/dpl/core/include/dpl/serialization.h
src/dpl/core/include/dpl/singleton.h
src/dpl/db/include/dpl/db/naive_synchronization_object.h
src/dpl/db/include/dpl/db/sql_connection.h
src/dpl/log/include/dpl/log/abstract_log_provider.h
src/dpl/log/include/dpl/log/dlog_log_provider.h
src/dpl/log/include/dpl/log/log.h
src/dpl/log/include/dpl/log/old_style_log_provider.h
src/dpl/log/include/dpl/log/sd_journal_provider.h
src/include/app-manager.h
src/include/app-runtime.h
src/include/app-sharing.h
src/include/label-monitor.h
src/include/policy-manager.h
src/include/security-manager-types.h
src/include/security-manager.h
src/include/user-manager.h
src/server/main/include/generic-event.h
src/server/main/include/generic-socket-manager.h
src/server/main/include/service-thread.h
src/server/main/include/socket-manager.h
src/server/service/include/base-service.h
src/server/service/include/service.h

index ad1df5b5077f55e51fdd3927e2b780880e478fac..69ec403949381ebcb2680aa85b1982e3449d38c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2015-2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -22,8 +22,7 @@
  * @brief       Definition of proper privilege dropping check utilities
  */
 
-#ifndef SECURITY_MANAGER_CHECK_PROPER_DROP_
-#define SECURITY_MANAGER_CHECK_PROPER_DROP_
+#pragma once
 
 #include <dpl/exception.h>
 
@@ -73,4 +72,3 @@ private:
 };
 
 } // namespace SecurityManager
-#endif /* SECURITY_MANAGER_CHECK_PROPER_DROP_H_ */
index b7baa518a4cb86a183bf48985f821fc195531431..659acfaca67555f362b3b7fe4decbdb5657e5b55 100644 (file)
@@ -23,8 +23,7 @@
  *              used in security manager.
  */
 
-#ifndef _SECURITY_MANAGER_CLIENT_
-#define _SECURITY_MANAGER_CLIENT_
+#pragma once
 
 #include <functional>
 
@@ -40,5 +39,3 @@ namespace SecurityManager {
 int try_catch(const std::function<int()>& func);
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CLIENT_
index ef640c8ed7738b4708366136f08ffda22bfa7027..71925cca06a4331f14742eea8ceb5e6b041fced7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
  *  limitations under the License
  */
 /*
- * @file        client-common.h
+ * @file        client-offline.h
  * @author      Rafal Krypa <r.krypa@samsung.com>
  * @version     1.0
  * @brief       Helper class for client "off-line" mode detection
  */
 
-#ifndef _SECURITY_MANAGER_OFFLINE_
-#define _SECURITY_MANAGER_OFFLINE_
+#pragma once
 
 #include <credentials.h>
 #include <file-lock.h>
@@ -43,5 +42,3 @@ private:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_OFFLINE_
index f3f9864227c2d2607482cf5637e63ea23347fd00..ab3c78f21ce09bee5a12f400ba425e70093ba8ad 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Definition of Configuration options
  */
 
-#ifndef SECURITY_MANAGER_CONFIG_
-#define SECURITY_MANAGER_CONFIG_
+#pragma once
 
 #include <string>
 
@@ -55,5 +54,3 @@ extern const bool IS_ASKUSER_ENABLED;
 };
 
 } /* namespace SecurityManager */
-
-#endif /* SECURITY_MANAGER_CONFIG_ */
index 7147bbec632a0c635d5274cc1a82ebcfb9f7afa1..006176a5328a100f93f34a71de18b1cebc720a1a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -22,8 +22,7 @@
  * @brief       Definition of ConnectionInfo structure and ConnectionInfoMap type.
  */
 
-#ifndef _CONNECTION_INFO_H_
-#define _CONNECTION_INFO_H_
+#pragma once
 
 #include <map>
 #include <generic-socket-manager.h>
@@ -38,5 +37,3 @@ namespace SecurityManager
 
     typedef std::map<int, ConnectionInfo> ConnectionInfoMap;
 } //namespace SecurityManager
-
-#endif //_CONNECTION_INFO_H_
index 77967c482d8d80d6dc96ef22a7e9b0e8ba6766a0..176ca1c3c6d5e889acf675a4d0a6c1e9c061bf09 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -16,7 +16,7 @@
  *  limitations under the License
  */
 /*
- * @file        sock-raii.h
+ * @file        connection.h
  * @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
  * @author      Lukasz Kostyra (l.kostyra@samsung.com)
  * @version     1.0
@@ -24,8 +24,7 @@
  *              used in security manager.
  */
 
-#ifndef _SECURITY_MANAGER_CONNECTION_
-#define _SECURITY_MANAGER_CONNECTION_
+#pragma once
 
 #include <vector>
 #include <functional>
@@ -53,5 +52,3 @@ int sendToServer(char const * const interface, const RawBuffer &send, MessageBuf
 int sendToManagerAncData(char const * const interface, const RawBuffer &send, struct msghdr &hdr);
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CONNECTION_
index 06546fc1edf5cbf35a393505024afd4877665bdb..ea0b0b20afe98213a106d13c0181c8fdef8e4e99 100644 (file)
@@ -19,8 +19,7 @@
  * @version    1.0
  */
 
-#ifndef SECURITY_MANAGER_CREDENTIALS_
-#define SECURITY_MANAGER_CREDENTIALS_
+#pragma once
 
 #include <string>
 #include <sys/types.h>
@@ -53,5 +52,3 @@ private:
 };
 
 } // namespace SecurityManager
-
-#endif /* SECURITY_MANAGER_CREDENTIALS_ */
index 2c4b7530b07d8ed8c46d583414b1803bfe0c5e7e..8d291bfc72e0dce8dad3104985c547d649070ddd 100644 (file)
@@ -21,8 +21,7 @@
  * @brief       Wrapper class for Cynara interface
  */
 
-#ifndef _SECURITY_MANAGER_CYNARA_
-#define _SECURITY_MANAGER_CYNARA_
+#pragma once
 
 #include <cynara-client-async.h>
 #include <cynara-admin.h>
@@ -353,5 +352,3 @@ private:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CYNARA_
index 08d60226bb17ba36fbbb714d9999f3ec1a272915..faec8b5e37a5685c33673c47e36257372ccbcba5 100644 (file)
@@ -60,4 +60,3 @@ private:
 };
 
 } // namespace SecurityManager
-
index 4e13019ea60fe67c4d1f87e167f6ef453443526a..fd4bd73679293a73bfe179bcbdf4a6aefbd632d2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
  *  limitations under the License
  */
 /**
- * @file        fs-exceptions.h
+ * @file        filesystem-exception.h
  * @author      Rafal Krypa <r.krypa@samsung.com>
  * @version     1.0
  * @brief       Declaration of Smack-specific exceptions
  *
  */
-#ifndef _FILESYSTEM_EXCEPTIONS_H_
-#define _FILESYSTEM_EXCEPTIONS_H_
+#pragma once
 
 #include <dpl/exception.h>
 
@@ -38,5 +37,3 @@ public:
 
 } // namespace FS
 } // namespace SecurityManager
-
-#endif /* _FILESYSTEM_EXCEPTIONS_H_ */
index 9c4783604372e8c837e27027a461a864b1c138a4..33f615ae7c6e74f10256ad6899938fbb11f68b0a 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Very simple wrapper for opendir/readdir.
  *
  */
-#ifndef _FILESYSTEM_H_
-#define _FILESYSTEM_H_
+#pragma once
 
 #include <vector>
 #include <string>
@@ -41,6 +40,3 @@ std::string dirName(const std::string &path);
 
 } // namespace FS
 } // nanespace SecurityManager
-
-#endif // _FILESYSTEM_H_
-
index 19e7ee2d6f3968bba40897016c6bebebf762dec4..6e8830cf8ceae2f76c9e052e753a3ea014cc391b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
  *  limitations under the License
  */
 /*
- * @file        secket-buffer.h
+ * @file        message-buffer.h
  * @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
  * @version     1.0
  * @brief       Implementatin of MessageBuffer.
  */
 
-#ifndef _SECURITY_MANAGER_SOCKET_BUFFER_
-#define _SECURITY_MANAGER_SOCKET_BUFFER_
+#pragma once
 
 #include <vector>
 
@@ -75,5 +74,3 @@ protected:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SOCKET_BUFFER_
index 1ba4aeb224862ea613335ff4225d18105a478e10..7b35688e37fd4793f5a7fe39d26b61cc2e2fa61d 100644 (file)
@@ -23,8 +23,7 @@
  * @brief       Header with API for adding, deleting and reading permissible names
  * @brief       (names of installed applications)
  */
-#ifndef _PERMISSIBLE_SET_H_
-#define _PERMISSIBLE_SET_H_
+#pragma once
 
 #include <cstdlib>
 #include <string>
@@ -89,4 +88,3 @@ void removeUserPermissibleFile(uid_t uid);
 
 } // PermissibleSet
 } // SecurityManager
-#endif /* _PERMISSIBLE_SET_H_ */
index 764762e46a26dceefc132becd3d10fa20b1c3e27..7db818235140b7fed80cb200d7b7d70acfa93929 100644 (file)
@@ -20,8 +20,7 @@
  * @author     Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
  * @version    1.0
  */
-#ifndef _PKG_INFO_H_
-#define _PKG_INFO_H_
+#pragma once
 
 #include <string>
 
@@ -34,5 +33,3 @@ struct PkgInfo {
 };
 
 } // SecurityManager
-
-#endif /* _PKG_INFO_H_ */
index 5750e230358e3a203c72f582a5b9f45769047c05..200d8186e5a925bc69f5579832cef8dd558f5976 100644 (file)
@@ -29,6 +29,8 @@
  * @brief       This file contains declaration of the API to privilges database.
  */
 
+#pragma once
+
 #include <cstdio>
 #include <list>
 #include <utility>
@@ -42,9 +44,6 @@
 
 #include "pkg-info.h"
 
-#ifndef PRIVILEGE_DB_H_
-#define PRIVILEGE_DB_H_
-
 namespace SecurityManager {
 
 const std::string PRIVILEGE_DB_PATH = TizenPlatformConfig::makePath(TZ_SYS_DB, ".security-manager.db");
@@ -529,5 +528,3 @@ public:
 };
 
 } //namespace SecurityManager
-
-#endif // PRIVILEGE_DB_H_
index 0e2ab97379587b8c1b2cd81e7fabd79cfad34eab..c93fb14acf95cd3f636107746459906fb1fd46a9 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       This file contains list of all protocols suported by security-manager.
  */
 
-#ifndef _SECURITY_MANAGER_PROTOCOLS_
-#define _SECURITY_MANAGER_PROTOCOLS_
+#pragma once
 
 #include <sys/types.h>
 #include <unistd.h>
@@ -129,6 +128,3 @@ typedef struct policy_entry policy_entry;
 struct policy_update_req {
     std::vector<const policy_entry *> units;
 };
-
-
-#endif // _SECURITY_MANAGER_PROTOCOLS_
index b30e9f90d085db9ba4da907f0608c71cc41fdb41..9a7f7e737e27c314e4c4d1fb5f2c225a88dae893 100644 (file)
@@ -21,8 +21,7 @@
  * @brief       Implementation of the service methods
  */
 
-#ifndef _SECURITY_MANAGER_SERVICE_IMPL_
-#define _SECURITY_MANAGER_SERVICE_IMPL_
+#pragma once
 
 #include <unistd.h>
 #include <sys/types.h>
@@ -304,5 +303,3 @@ private:
 };
 
 } /* namespace SecurityManager */
-
-#endif /* _SECURITY_MANAGER_SERVICE_IMPL_ */
index ffa2aa8d9cda3b79ee733b6f60ac1c287caff668..a21180680201c6bbb3f6843c9d76119612a0a22f 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Definitions of sharing info wrapping types.
  */
 
-#ifndef SECURITY_MANAGER_SHARING_INFO
-#define SECURITY_MANAGER_SHARING_INFO
+#pragma once
 
 namespace SecurityManager {
 class AppInfo {
@@ -38,5 +37,3 @@ typedef std::vector<std::string> PathLabelVector;
 typedef std::map<AppInfo, PathLabelVector> OwnerSharingInfo;
 
 } //namespace SecurityManager
-
-#endif // SECURITY_MANAGER_SHARING_INFO
index b1cf733c5d8781339dbbf5d84711f8d28a307ce9..c71faea0b0fdf1138b52c002a3b31b42d40011e0 100644 (file)
@@ -1,7 +1,5 @@
 /*
- *  security-manager
- *
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -18,8 +16,7 @@
  *  limitations under the License
  */
 
-#ifndef _SMACK_CHECK_H_
-#define _SMACK_CHECK_H_
+#pragma once
 
 namespace SecurityManager {
 
@@ -38,5 +35,3 @@ int smack_runtime_check(void);
 int smack_check(void);
 
 } // namespace SecurityManager
-
-#endif // _SMACK_CHECK_H_
index 98e60d9b6811605bda07acd2778119208ea97061..0225215048881b336ddf075415de1f1ed0d8ff1c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -22,8 +22,7 @@
  * @brief       Declaration of Smack-specific exceptions
  *
  */
-#ifndef _SMACK_EXCEPTIONS_H_
-#define _SMACK_EXCEPTIONS_H_
+#pragma once
 
 #include <dpl/exception.h>
 
@@ -40,5 +39,3 @@ public:
 };
 
 } // namespace SecurityManager
-
-#endif /* _SMACK_EXCEPTIONS_H_ */
index 9ad95b965907e59525b22e19db795fd47ef11199..8c67e09269c7f9d41a6fbadb61da664dfa1f7889 100644 (file)
@@ -23,8 +23,7 @@
  * @brief       Header file of functions managing smack labels
  *
  */
-#ifndef _SMACK_LABELS_H_
-#define _SMACK_LABELS_H_
+#pragma once
 
 #include <string>
 #include <utility>
@@ -162,5 +161,3 @@ std::string getSmackLabelFromSelf(void);
 
 } // namespace SmackLabels
 } // namespace SecurityManager
-
-#endif /* _SMACK_LABELS_H_ */
index bb3cffd85c81216c11504dabc51f3751f589fc76..65c40dbaa27008d604cb1bb23adbfad489cb51db 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Header file of a class managing smack rules
  *
  */
-#ifndef _SMACK_RULES_H_
-#define _SMACK_RULES_H_
+#pragma once
 
 #include <vector>
 #include <string>
@@ -272,5 +271,3 @@ private:
 };
 
 } // namespace SecurityManager
-
-#endif /* _SMACK_RULES_H_ */
index 54bd0b1aeae55ca6ee2ca8b4f85566eeb22a8ad9..1da8a4cf51c42a02b25a69344ec224ea9e8f3fa7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -22,8 +22,7 @@
  * @brief       Definition of Statement Wrapper class.
  */
 
-#ifndef SECURITY_MANAGER_STMT_WRAPPER_
-#define SECURITY_MANAGER_STMT_WRAPPER_
+#pragma once
 
 #include <string>
 #include <dpl/db/sql_connection.h>
@@ -45,5 +44,3 @@ private:
 };
 
 } /* namespace SecurityManager */
-
-#endif /* SECURITY_MANAGER_STMT_WRAPPER_ */
index 9a6779c14c36fcde0c70db5370151629f3654d56..38a974b31eb2e971dc9e47c2cede30c47bba5a12 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of assert
  */
-#ifndef SECURITY_MANAGER_ASSERT_H
-#define SECURITY_MANAGER_ASSERT_H
+#pragma once
 
 #include <dpl/noreturn.h>
 
@@ -48,5 +47,3 @@ SECURITYMANAGER_NORETURN void AssertProc(const char *condition,
                 __FILE__, __LINE__, __FUNCTION__);                        \
         }                                                                 \
     } while (0)
-
-#endif // SECURITY_MANAGER_ASSERT_H
index 5892953d3c52f070adc27aea17c79e75e02220b5..e7cf56b7f287abf4bf0f06e9faa41fc1ec27987e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
  * @author      Jihoon Chung (jihoon.chung@samsung.com)
  * @version     1.0
  */
-#ifndef SECURITY_MANAGER_AVAILABILITY_H
-#define SECURITY_MANAGER_AVAILABILITY_H
+#pragma once
 
 #define SECURITY_MANAGER_DEPRECATED __attribute__((deprecated))
 #define SECURITY_MANAGER_DEPRECATED_WITH_MESSAGE(msg) __attribute__((deprecated(msg)))
 
 #define SECURITY_MANAGER_UNUSED __attribute__((unused))
 #define SECURITY_MANAGER_UNUSED_PARAM(variable) (void)variable
-
-#endif // SECURITY_MANAGER_AVAILABILITY_H
index dd03f5ecdeb1ad8fd8b5975acbee5565452b7c44..19a5b7befc6c31c42d4f4876d66f8c828c0493a9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the header file of binary queue
  */
-#ifndef SECURITY_MANAGER_BINARY_QUEUE_H
-#define SECURITY_MANAGER_BINARY_QUEUE_H
+#pragma once
 
 //#include <dpl/abstract_input_output.h>
 #include <dpl/exception.h>
@@ -294,5 +293,3 @@ class BinaryQueue
 };
 
 } // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_BINARY_QUEUE_H
index 8c173e86cd6b250b590e7907cf97fe9a477b35fa..feb7a240e05a85c4d350161da3e5831d66b5ece6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -22,8 +22,7 @@
  *              Current char traits could be extended in feature to boost
  * performance
  */
-#ifndef SECURITY_MANAGER_CHAR_TRAITS
-#define SECURITY_MANAGER_CHAR_TRAITS
+#pragma once
 
 #include <cstring>
 #include <string>
@@ -34,5 +33,3 @@
 namespace SecurityManager {
 typedef std::char_traits<wchar_t> CharTraits;
 } // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_CHAR_TRAITS
index 371c539d3b2342dc81d39e7bfb371ba5ea5586dc..7684d967e9b23443c68a4380a05f8fb283095d60 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -21,8 +21,7 @@
  *              and html output
  */
 
-#ifndef SECURITY_MANAGER_COLORS_H
-#define SECURITY_MANAGER_COLORS_H
+#pragma once
 
 namespace SecurityManager {
 namespace Colors {
@@ -70,5 +69,3 @@ extern const char* BOLD_WHITE_END;
 } //namespace Html
 } //namespace Colors
 } //namespace SecurityManager
-
-#endif /* SECURITY_MANAGER_COLORS_H */
index ebf02745f4ea4c0ddb992de6bcbe603dda3a3101..b713845b1e7027de9e1ffff4fa991721513ddfc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of errno string
  */
-#ifndef SECURITY_MANAGER_ERRNO_STRING_H
-#define SECURITY_MANAGER_ERRNO_STRING_H
+#pragma once
 
 #include <dpl/exception.h>
 #include <string>
@@ -31,5 +30,3 @@ DECLARE_EXCEPTION_TYPE(SecurityManager::Exception, InvalidErrnoValue)
 
 std::string GetErrnoString(int error = errno);
 } // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_ERRNO_STRING_H
index 2087102c978e5aa1444dea8895ab0e7073e92eca..005e735aad9a3493e43661a1752c443f5c7f04dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version 1.0
  * @brief   Header file for base exception
  */
-#ifndef SECURITY_MANAGER_EXCEPTION_H
-#define SECURITY_MANAGER_EXCEPTION_H
+#pragma once
 
 #include <string>
 #include <cstring>
@@ -381,5 +380,3 @@ DECLARE_EXCEPTION_TYPE(Exception, InternalError) ///< Unexpected error from
                                                  // kernel
 }
 }
-
-#endif // SECURITY_MANAGER_EXCEPTION_H
index 80b835f09b3b3c7e13cee4e691fea521481948f0..9f68b3f81ca543b17f42955cf325c50682e4ef9b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file deleter with use std::free()
  */
-#ifndef FREE_DELETER_H
-#define FREE_DELETER_H
+#pragma once
 
 #include <cstdlib>
 namespace SecurityManager
@@ -30,4 +29,3 @@ struct free_deleter
     void operator()(void *p) { std::free(p); }
 };
 }// SecurityManager
-#endif // FREE_DELETER_H
index bc0e167ce1176b7ca238ed987fdedf04fc969226..06bfdd95da03b000afc0ebf15afa36cd32e4ac63 100644 (file)
@@ -20,8 +20,7 @@
  *
  */
 
-#ifndef _FSTREAM_ACCESSORS_H
-#define _FSTREAM_ACCESSORS_H
+#pragma once
 
 namespace DPL {
 
@@ -42,5 +41,3 @@ public:
 };
 
 } // namespace DPL
-
-#endif // _FSTREAM_ACCESSORS_H
index 4d476a44a2e952fdb908d8b532dfb9e9afc110ae..e165f345be87498f5815e21943ee1bd09c2dbddf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
  *    limitations under the License.
  */
 /*
- * @file        noncopyable
+ * @file        noncopyable.h
  * @author      Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
  * @version     1.0
  * @brief       This file is the implementation file of noncopyable
  */
-#ifndef SECURITYMANAGER_NONCOPYABLE_H
-#define SECURITYMANAGER_NONCOPYABLE_H
+
+#pragma once
 
 namespace SecurityManager {
 class Noncopyable
@@ -34,5 +34,3 @@ class Noncopyable
     virtual ~Noncopyable();
 };
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_NONCOPYABLE_H
index a876f34b6dd1e94153684b67547a829d9764de05..fbae96c3a55ad9d30facd04a45787786473dc263 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,9 +19,6 @@
  * @version     1.0
  * @brief       This file is the implementation file of noreturn
  */
-#ifndef SECURITYMANAGER_NORETURN_H
-#define SECURITYMANAGER_NORETURN_H
+#pragma once
 
 #define SECURITYMANAGER_NORETURN __attribute__((__noreturn__))
-
-#endif // SECURITYMANAGER_NORETURN_H
index a3706438736f20327c6a1757e39435d3990c3b21..096aa93b6c124443720e0e3a2176a837fb4ba1df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version 1.0
  * @brief   Interfaces and templates used for data serialization.
  */
-#ifndef SERIALIZATION_H
-#define SERIALIZATION_H
+#pragma once
 
 #include <string>
 #include <vector>
@@ -409,5 +408,3 @@ struct Deserialization {
     }
 }; // struct Deserialization
 } // namespace SecurityManager
-
-#endif // SERIALIZATION_H
index 8b208678faee48fdf77607114f92cf84a86c216f..ff158e671ac8e5416e67ceadf36a4bea0532e762 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of singleton
  */
-#ifndef SECURITYMANAGER_SINGLETON_H
-#define SECURITYMANAGER_SINGLETON_H
+#pragma once
 
 namespace SecurityManager {
 template<typename Class>
@@ -62,5 +61,3 @@ Class &Singleton<Class>::Instance()
 }
 
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_SINGLETON_H
index ad4192f5047ff10d94bdb9c6cfd2234057fb092f..89d07ed308c05b105f30e65e50169c9b0558b04b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -20,8 +20,7 @@
  * @brief       This file is the implementation file of SQL naive
  * synchronization object
  */
-#ifndef SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
-#define SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
+#pragma once
 
 #include <dpl/db/sql_connection.h>
 
@@ -41,5 +40,3 @@ class NaiveSynchronizationObject :
 };
 } // namespace DB
 } // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
index cab951b9bef8ef4c677521a061acb2ac0f442e7a..43d834c25b7c9ca16871c69d3f795319abf5cd55 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of SQL connection
  */
-#ifndef SECURITY_MANAGER_SQL_CONNECTION_H
-#define SECURITY_MANAGER_SQL_CONNECTION_H
+#pragma once
 
 #include <dpl/noncopyable.h>
 #include <dpl/exception.h>
@@ -494,5 +493,3 @@ class SqlConnection
 };
 } // namespace DB
 } // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_SQL_CONNECTION_H
index db4e65481239956283e296e319b8c9a168186df7..80af6b797050c5cce53bf299915fd49127280e5a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of abstract log provider
  */
-#ifndef SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
-#define SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
+#pragma once
 
 namespace SecurityManager {
 namespace Log {
@@ -57,5 +56,3 @@ class AbstractLogProvider
 };
 }
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
index b5e39fcda2b259206f6872446a2800a4d8db9b23..641c5c2e33557c577862e916066b240c94e19517 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of DLOG log provider
  */
-#ifndef SECURITYMANAGER_DLOG_LOG_PROVIDER_H
-#define SECURITYMANAGER_DLOG_LOG_PROVIDER_H
+#pragma once
 
 #include <dpl/log/abstract_log_provider.h>
 #include <memory>
@@ -70,5 +69,3 @@ class DLOGLogProvider :
 
 } // namespace Log
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_DLOG_LOG_PROVIDER_H
index 2c1f999b9da58e81d8edc0fa46227242f017fe34..eb7d051cdabfb61fcc3d47aa3b7ead764472bcfa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of log system
  */
-#ifndef SECURITYMANAGER_LOG_H
-#define SECURITYMANAGER_LOG_H
+#pragma once
 
 #include <dpl/singleton.h>
 #include <dpl/noncopyable.h>
@@ -172,5 +171,3 @@ do                                                                         \
     #define LogInfo(message) DPL_MACRO_DUMMY_LOGGING(message, Info)
     #define LogPedantic(message) DPL_MACRO_DUMMY_LOGGING(message, Pedantic)
 #endif // BUILD_TYPE_DEBUG
-
-#endif // SECURITYMANAGER_LOG_H
index 9eb5dde17a29637374af8716bde9072a5e124365..9272c22af36b8d9a70fd70fd3222e3aeccd75f7d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -19,8 +19,7 @@
  * @version     1.0
  * @brief       This file is the implementation file of old style log provider
  */
-#ifndef SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
-#define SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
+#pragma once
 
 #include <dpl/log/abstract_log_provider.h>
 #include <string>
@@ -80,5 +79,3 @@ class OldStyleLogProvider :
 };
 }
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
index 7bf7bb6629b68475ce927ee274bcaab002eb687b..aa67dadc575955b3c59cd57e743a92dc46fa6596 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -20,8 +20,7 @@
  * @brief       This file contains the implementation of systemd journal log provider
  */
 
-#ifndef SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
-#define SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
+#pragma once
 
 #include <dpl/log/abstract_log_provider.h>
 #include <memory>
@@ -74,5 +73,3 @@ class SdJournalProvider :
 
 } // namespace Log
 } // namespace SecurityManager
-
-#endif // SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
index 04b8688abf8fd998ac0999ece1bd7c2419e80840..83ed5a681833eab27260f03f4012b66dcebcfff7 100644 (file)
@@ -17,8 +17,7 @@
  *
  */
 
-#ifndef SECURITY_MANAGER_APP_MANAGER_H_
-#define SECURITY_MANAGER_APP_MANAGER_H_
+#pragma once
 
 #include "security-manager-types.h"
 
@@ -256,5 +255,3 @@ int security_manager_paths_register(const path_req *p_req);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_APP_MANAGER_H_ */
index 133c65ad833bdc3e81e4db901faf0654f09093c6..ee4d2de5221dbbe1645bcbec80c639fc3a3b23dc 100644 (file)
@@ -17,8 +17,7 @@
  *
  */
 
-#ifndef SECURITY_MANAGER_APP_RUNTIME_H_
-#define SECURITY_MANAGER_APP_RUNTIME_H_
+#pragma once
 
 #include "security-manager-types.h"
 
@@ -209,5 +208,3 @@ int security_manager_app_has_privilege(const char *app_id, const char *privilege
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_APP_RUNTIME_H_ */
index 4bc61d4391fc0a054b16bf72f3531ffff69a997f..ddf0b07a06402083cf72b4c28b3b7f1dd103f39a 100644 (file)
@@ -17,8 +17,7 @@
  *
  */
 
-#ifndef SECURITY_MANAGER_APP_SHARING_H_
-#define SECURITY_MANAGER_APP_SHARING_H_
+#pragma once
 
 #include "security-manager-types.h"
 
@@ -114,5 +113,3 @@ int security_manager_private_sharing_drop(const private_sharing_req *p_req);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_APP_SHARING_H_ */
index 71ac4266240e197a092188b475afbc5f1f521a9f..f859e276f8d17c2e60b47975335ed49087a95290 100644 (file)
@@ -22,8 +22,7 @@
  * @version     1.0
  * @brief       Header with API targeted for launcher to monitor labels of installed applications
  */
-#ifndef _LABEL_MONITOR_H_
-#define _LABEL_MONITOR_H_
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -115,5 +114,3 @@ int security_manager_app_labels_monitor_process(app_labels_monitor *monitor);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* _LABEL_MONITOR_H_ */
index 972e4767fe599835a4c5dc47a37d12ceb0a99be9..63d983be06f9fd1470d34dc2eaa557b198339845 100644 (file)
@@ -17,8 +17,7 @@
  *
  */
 
-#ifndef SECURITY_MANAGER_POLICY_MANAGER_H_
-#define SECURITY_MANAGER_POLICY_MANAGER_H_
+#pragma once
 
 #include "security-manager-types.h"
 
@@ -442,5 +441,3 @@ void security_manager_policy_levels_free(char **levels, size_t levels_count);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_POLICY_MANAGER_H_ */
index b3f6f594ce8d8b7c9165de7738b03a972cf24004..dfc331783843c9b2d7393e9b5dfa581388ffdf0d 100644 (file)
@@ -23,8 +23,7 @@
  * @version     1.0
  * @brief       This file contains header of security-manager API
  */
-#ifndef SECURITY_MANAGER_TYPES_H_
-#define SECURITY_MANAGER_TYPES_H_
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -145,6 +144,3 @@ typedef struct app_labels_monitor app_labels_monitor;
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_TYPES_H_ */
-
index b13a26a0d782bc840999838aa6475f6a060e77d7..466270cbed8b71d98e1a9912a003df737fb87a1d 100644 (file)
@@ -24,8 +24,7 @@
  * @brief       This file contains header of security-manager API
  */
 
-#ifndef SECURITY_MANAGER_H_
-#define SECURITY_MANAGER_H_
+#pragma once
 
 #include <sys/types.h>
 
@@ -51,5 +50,3 @@ const char *security_manager_strerror(enum lib_retcode rc);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_H_ */
index d1851fd91b8d832292c9fa53a6e927f933dc32af..06497f71cc3fc7d770c6b1e26b4b57304b63eac7 100644 (file)
@@ -17,8 +17,7 @@
  *
  */
 
-#ifndef SECURITY_MANAGER_USER_MANAGER_H_
-#define SECURITY_MANAGER_USER_MANAGER_H_
+#pragma once
 
 #include "security-manager-types.h"
 
@@ -101,5 +100,3 @@ int security_manager_user_delete(const user_req *p_req);
 #ifdef __cplusplus
 }
 #endif
-
-#endif /* SECURITY_MANAGER_USER_MANAGER_H_ */
index 43ed2e5759f80b455e422b7d4c53684e999de6c5..a55956fdea732e92fc97862193ed52b4215a7e75 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
  *  limitations under the License
  */
 /*
- * @file        protocols.h
+ * @file        generic-event.h
  * @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
  * @version     1.0
  * @brief       Implementation of GenericEvent.
  */
 
-#ifndef _SECURITY_MANAGER_GENERIC_EVENT_
-#define _SECURITY_MANAGER_GENERIC_EVENT_
+#pragma once
 
 namespace SecurityManager {
 
@@ -32,5 +31,3 @@ struct GenericEvent {
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_GENERIC_EVENT_
index ef7c0c6dba63336144a4cce492c5f6351848e389..75795a64dbd6cfe5bc3aa864b1d90845f09f52c8 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Implementation of GenericSocketService and GenericSocketManager.
  */
 
-#ifndef _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
-#define _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
+#pragma once
 
 #include <vector>
 #include <string>
@@ -142,5 +141,3 @@ struct GenericSocketManager {
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
index 964d1681d3cd59a05d2edffc2b57ffceb5786fa5..21dd6f85a27efe083143b78c373b51bbb62f8f48 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Implementation of threads.
  */
 
-#ifndef _SECURITY_MANAGER_SERVICE_THREAD_
-#define _SECURITY_MANAGER_SERVICE_THREAD_
+#pragma once
 
 #include <cassert>
 #include <queue>
@@ -173,5 +172,3 @@ protected:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SERVICE_THREAD_
index 6174d6a84df94c85718376bf24f702c4f6c7dc64..97e24765c1b53a65bb606bb0e33eb1ab064a11f6 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       SocketManager implementation.
  */
 
-#ifndef _SECURITY_MANAGER_SOCKET_MANAGER_
-#define _SECURITY_MANAGER_SOCKET_MANAGER_
+#pragma once
 
 #include <vector>
 #include <queue>
@@ -131,5 +130,3 @@ protected:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SOCKET_MANAGER_
index ca2753e2faef2d5e29b5bc2ed36413010bdcf2f4..35fc678b571cefb856182c5c1614680fa57b4bff 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Implementation of security-manager base service
  */
 
-#ifndef _SECURITY_MANAGER_BASE_SERVICE_
-#define _SECURITY_MANAGER_BASE_SERVICE_
+#pragma once
 
 #include <service-thread.h>
 #include <generic-socket-manager.h>
@@ -77,5 +76,3 @@ protected:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_BASE_SERVICE_
index 1c91c9233c9e37fbb8f8ba6ae12b2145ef19d252..aed44d8bf0821183ab2ebac1826091db89ea1ca3 100644 (file)
@@ -22,8 +22,7 @@
  * @brief       Implementation of security-manager service
  */
 
-#ifndef _SECURITY_MANAGER_SERVICE_
-#define _SECURITY_MANAGER_SERVICE_
+#pragma once
 
 #include "base-service.h"
 #include "credentials.h"
@@ -198,5 +197,3 @@ private:
 };
 
 } // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SERVICE_