diff options
Diffstat (limited to 'cpp/src')
205 files changed, 227 insertions, 843 deletions
diff --git a/cpp/src/Freeze/BackgroundSaveEvictorI.h b/cpp/src/Freeze/BackgroundSaveEvictorI.h index 805086a0eca..5d8132f9afc 100644 --- a/cpp/src/Freeze/BackgroundSaveEvictorI.h +++ b/cpp/src/Freeze/BackgroundSaveEvictorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_BACKGROUND_SAVE_EVICTOR_I_H -#define FREEZE_BACKGROUND_SAVE_EVICTOR_I_H +#pragma once #include <Freeze/EvictorI.h> #include <Freeze/BackgroundSaveEvictor.h> @@ -213,5 +212,3 @@ private: }; } - -#endif diff --git a/cpp/src/Freeze/ConnectionI.h b/cpp/src/Freeze/ConnectionI.h index 2f1983c42c7..28dea295554 100644 --- a/cpp/src/Freeze/ConnectionI.h +++ b/cpp/src/Freeze/ConnectionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_CONNECTIONI_H -#define FREEZE_CONNECTIONI_H +#pragma once #include <Freeze/Connection.h> #include <Freeze/Initialize.h> @@ -158,5 +157,3 @@ ConnectionI::deadlockWarning() const } } - -#endif diff --git a/cpp/src/Freeze/EvictorI.h b/cpp/src/Freeze/EvictorI.h index 34f03223ffe..671603d106b 100755 --- a/cpp/src/Freeze/EvictorI.h +++ b/cpp/src/Freeze/EvictorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_EVICTOR_I_H -#define FREEZE_EVICTOR_I_H +#pragma once #include <IceUtil/IceUtil.h> #include <Ice/Ice.h> @@ -348,5 +347,3 @@ checkIdentity(const Ice::Identity& ident) } } - -#endif diff --git a/cpp/src/Freeze/EvictorIteratorI.h b/cpp/src/Freeze/EvictorIteratorI.h index fd075645f86..4c740782c32 100644 --- a/cpp/src/Freeze/EvictorIteratorI.h +++ b/cpp/src/Freeze/EvictorIteratorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_EVICTOR_ITERATOR_I_H -#define FREEZE_EVICTOR_ITERATOR_I_H +#pragma once #include <Ice/Ice.h> #include <Freeze/Freeze.h> @@ -49,5 +48,3 @@ private: }; } - -#endif diff --git a/cpp/src/Freeze/IndexI.h b/cpp/src/Freeze/IndexI.h index ea850a3be02..3fe2d6018e0 100644 --- a/cpp/src/Freeze/IndexI.h +++ b/cpp/src/Freeze/IndexI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_INDEX_I_H -#define FREEZE_INDEX_I_H +#pragma once #include <Ice/Ice.h> #include <Freeze/Index.h> @@ -49,5 +48,3 @@ private: }; } -#endif - diff --git a/cpp/src/Freeze/MapDb.h b/cpp/src/Freeze/MapDb.h index 8ec63ccd49f..06e192b727d 100644 --- a/cpp/src/Freeze/MapDb.h +++ b/cpp/src/Freeze/MapDb.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_MAP_DB_H -#define FREEZE_MAP_DB_H +#pragma once #include <IceUtil/Config.h> #include <db_cxx.h> @@ -120,4 +119,3 @@ MapDb::getKeyCompare() const } } -#endif diff --git a/cpp/src/Freeze/MapI.h b/cpp/src/Freeze/MapI.h index 3ab646fdc20..7e203428c58 100644 --- a/cpp/src/Freeze/MapI.h +++ b/cpp/src/Freeze/MapI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_MAP_I_H -#define FREEZE_MAP_I_H +#pragma once #include <Freeze/Map.h> #include <Freeze/ConnectionI.h> @@ -190,5 +189,3 @@ IteratorHelperI::tx() const } } - -#endif diff --git a/cpp/src/Freeze/ObjectStore.h b/cpp/src/Freeze/ObjectStore.h index 553ac7a77f9..2a3739379de 100644 --- a/cpp/src/Freeze/ObjectStore.h +++ b/cpp/src/Freeze/ObjectStore.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_OBJECT_STORE_H -#define FREEZE_OBJECT_STORE_H +#pragma once #include <Ice/Ice.h> #include <Ice/Identity.h> @@ -163,6 +162,3 @@ ObjectStoreBase::sampleServant() const } } - -#endif - diff --git a/cpp/src/Freeze/SharedDbEnv.h b/cpp/src/Freeze/SharedDbEnv.h index 977957d8763..5e399c6411a 100644 --- a/cpp/src/Freeze/SharedDbEnv.h +++ b/cpp/src/Freeze/SharedDbEnv.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SHARED_DB_ENV_H -#define FREEZE_SHARED_DB_ENV_H +#pragma once #include <Freeze/Map.h> #include <IceUtil/FileUtil.h> @@ -119,4 +118,3 @@ SharedDbEnv::getCommunicator() const } } -#endif diff --git a/cpp/src/Freeze/TransactionI.h b/cpp/src/Freeze/TransactionI.h index 456e9f9b883..993a50d4ae8 100644 --- a/cpp/src/Freeze/TransactionI.h +++ b/cpp/src/Freeze/TransactionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_TRANSACTIONI_H -#define FREEZE_TRANSACTIONI_H +#pragma once #include <Ice/CommunicatorF.h> #include <Freeze/Transaction.h> @@ -85,4 +84,3 @@ private: typedef IceUtil::Handle<TransactionI> TransactionIPtr; } -#endif diff --git a/cpp/src/Freeze/TransactionalEvictorContext.h b/cpp/src/Freeze/TransactionalEvictorContext.h index 0278d6f5ad3..45a6afd1074 100644 --- a/cpp/src/Freeze/TransactionalEvictorContext.h +++ b/cpp/src/Freeze/TransactionalEvictorContext.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_TRANSACTIONAL_EVICTOR_CONTEXT_H -#define FREEZE_TRANSACTIONAL_EVICTOR_CONTEXT_H +#pragma once #include <Ice/Ice.h> #include <Freeze/TransactionalEvictor.h> @@ -164,6 +163,3 @@ private: typedef IceUtil::Handle<TransactionalEvictorContext> TransactionalEvictorContextPtr; } - - -#endif diff --git a/cpp/src/Freeze/TransactionalEvictorI.h b/cpp/src/Freeze/TransactionalEvictorI.h index d8c9a9375d4..73c140b0db4 100644 --- a/cpp/src/Freeze/TransactionalEvictorI.h +++ b/cpp/src/Freeze/TransactionalEvictorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_TRANSACTIONAL_EVICTOR_I_H -#define FREEZE_TRANSACTIONAL_EVICTOR_I_H +#pragma once #include <Freeze/EvictorI.h> #include <Freeze/TransactionalEvictor.h> @@ -124,5 +123,3 @@ private: typedef IceUtil::Handle<TransactionalEvictorI> TransactionalEvictorIPtr; } - -#endif diff --git a/cpp/src/Freeze/Util.h b/cpp/src/Freeze/Util.h index 9423a707f6f..f848e873bd2 100644 --- a/cpp/src/Freeze/Util.h +++ b/cpp/src/Freeze/Util.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_UTIL_H -#define FREEZE_UTIL_H +#pragma once #include <Ice/Ice.h> #include <Freeze/DB.h> @@ -68,7 +67,3 @@ handleDbException(const DbException&, Key&, Dbt&, Value&, Dbt&, const char*, int); } - - -#endif - diff --git a/cpp/src/FreezeScript/AssignVisitor.h b/cpp/src/FreezeScript/AssignVisitor.h index 388dde01b60..71f9091967c 100644 --- a/cpp/src/FreezeScript/AssignVisitor.h +++ b/cpp/src/FreezeScript/AssignVisitor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_ASSIGN_VISITOR_H -#define FREEZE_SCRIPT_ASSIGN_VISITOR_H +#pragma once #include <FreezeScript/Data.h> @@ -50,5 +49,3 @@ private: }; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Data.h b/cpp/src/FreezeScript/Data.h index 6e4e24a0168..7f2524f06df 100644 --- a/cpp/src/FreezeScript/Data.h +++ b/cpp/src/FreezeScript/Data.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_DATA_H -#define FREEZE_SCRIPT_DATA_H +#pragma once #include <Ice/Ice.h> #include <Slice/Parser.h> @@ -614,5 +613,3 @@ public: }; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/DumpDescriptors.h b/cpp/src/FreezeScript/DumpDescriptors.h index 25af7437a0f..a4d900df06c 100644 --- a/cpp/src/FreezeScript/DumpDescriptors.h +++ b/cpp/src/FreezeScript/DumpDescriptors.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_DUMP_DESCRIPTORS_H -#define FREEZE_SCRIPT_DUMP_DESCRIPTORS_H +#pragma once #include <FreezeScript/Parser.h> #include <IceXML/Parser.h> @@ -302,5 +301,3 @@ private: typedef IceUtil::Handle<DumpDBDescriptor> DumpDBDescriptorPtr; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Error.h b/cpp/src/FreezeScript/Error.h index 8e52a549cbd..4cbf3ff2272 100644 --- a/cpp/src/FreezeScript/Error.h +++ b/cpp/src/FreezeScript/Error.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_ERROR_H -#define FREEZE_SCRIPT_ERROR_H +#pragma once #include <Slice/Parser.h> @@ -64,5 +63,3 @@ private: }; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Exception.h b/cpp/src/FreezeScript/Exception.h index 8c3b6d5e87e..3d19ec8e2dc 100644 --- a/cpp/src/FreezeScript/Exception.h +++ b/cpp/src/FreezeScript/Exception.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_EXCEPTION_H -#define FREEZE_SCRIPT_EXCEPTION_H +#pragma once #include <IceUtil/Exception.h> @@ -35,5 +34,3 @@ private: }; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Functions.h b/cpp/src/FreezeScript/Functions.h index d3b63146ba7..c1194051e3b 100644 --- a/cpp/src/FreezeScript/Functions.h +++ b/cpp/src/FreezeScript/Functions.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_FUNCTIONS_H -#define FREEZE_SCRIPT_FUNCTIONS_H +#pragma once #include <FreezeScript/Data.h> @@ -22,5 +21,3 @@ bool invokeMemberFunction(const std::string&, const DataPtr&, const DataList&, D const ErrorReporterPtr&); } - -#endif diff --git a/cpp/src/FreezeScript/GrammarUtil.h b/cpp/src/FreezeScript/GrammarUtil.h index 2ca8fa22eda..9b42a92351a 100644 --- a/cpp/src/FreezeScript/GrammarUtil.h +++ b/cpp/src/FreezeScript/GrammarUtil.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_GRAMMAR_UTIL_H -#define FREEZE_SCRIPT_GRAMMAR_UTIL_H +#pragma once #include <FreezeScript/Parser.h> @@ -132,5 +131,3 @@ int freeze_script_parse(); // yyoverflow. // #define yyoverflow(a, b, c, d, e, f) freeze_script_error(a) - -#endif diff --git a/cpp/src/FreezeScript/Parser.h b/cpp/src/FreezeScript/Parser.h index c3297385aec..397de172fac 100644 --- a/cpp/src/FreezeScript/Parser.h +++ b/cpp/src/FreezeScript/Parser.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_PARSER_H -#define FREEZE_SCRIPT_PARSER_H +#pragma once #include <FreezeScript/Data.h> @@ -247,5 +246,3 @@ private: } // End of namespace FreezeScript std::ostream& operator<<(std::ostream&, const FreezeScript::EntityNodePtr&); - -#endif diff --git a/cpp/src/FreezeScript/Print.h b/cpp/src/FreezeScript/Print.h index 6d6d57efbd1..ce548612c77 100644 --- a/cpp/src/FreezeScript/Print.h +++ b/cpp/src/FreezeScript/Print.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_PRINT_H -#define FREEZE_SCRIPT_PRINT_H +#pragma once #include <FreezeScript/Data.h> @@ -18,5 +17,3 @@ namespace FreezeScript void printData(const DataPtr&, std::ostream&); } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/TransformAnalyzer.h b/cpp/src/FreezeScript/TransformAnalyzer.h index 2d0d5719bcc..1ebbf1a91a6 100644 --- a/cpp/src/FreezeScript/TransformAnalyzer.h +++ b/cpp/src/FreezeScript/TransformAnalyzer.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_TRANSFORM_ANALYZER_H -#define FREEZE_SCRIPT_TRANSFORM_ANALYZER_H +#pragma once #include <Slice/Parser.h> #include <IceUtil/OutputUtil.h> @@ -40,5 +39,3 @@ private: }; } - -#endif diff --git a/cpp/src/FreezeScript/TransformVisitor.h b/cpp/src/FreezeScript/TransformVisitor.h index c1365e340a1..1a53d7954ca 100644 --- a/cpp/src/FreezeScript/TransformVisitor.h +++ b/cpp/src/FreezeScript/TransformVisitor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_TRANSFORM_VISITOR_H -#define FREEZE_SCRIPT_TRANSFORM_VISITOR_H +#pragma once #include <FreezeScript/Data.h> @@ -116,5 +115,3 @@ private: }; } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Transformer.h b/cpp/src/FreezeScript/Transformer.h index 724688b11de..323f285c26a 100644 --- a/cpp/src/FreezeScript/Transformer.h +++ b/cpp/src/FreezeScript/Transformer.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_TRANSFORMER_H -#define FREEZE_SCRIPT_TRANSFORMER_H +#pragma once #include <Ice/Ice.h> #include <Slice/Parser.h> @@ -29,5 +28,3 @@ transformDatabase(const Ice::CommunicatorPtr&, std::ostream&, bool, std::istream&); } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/FreezeScript/Util.h b/cpp/src/FreezeScript/Util.h index 4ad93167c7e..cb81adf7b8f 100644 --- a/cpp/src/FreezeScript/Util.h +++ b/cpp/src/FreezeScript/Util.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_SCRIPT_UTIL_H -#define FREEZE_SCRIPT_UTIL_H +#pragma once #include <Slice/Parser.h> #include <Ice/CommunicatorF.h> @@ -63,5 +62,3 @@ typedef std::map<std::string, Freeze::CatalogData> CatalogDataMap; CatalogDataMap readCatalog(const Ice::CommunicatorPtr&, const std::string&); } // End of namespace FreezeScript - -#endif diff --git a/cpp/src/Glacier2/Blobject.h b/cpp/src/Glacier2/Blobject.h index 6c50d286d34..05e6c63fe3b 100644 --- a/cpp/src/Glacier2/Blobject.h +++ b/cpp/src/Glacier2/Blobject.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef BLOBJECT_H -#define BLOBJECT_H +#pragma once #include <Ice/Ice.h> #include <Glacier2/RequestQueue.h> @@ -45,5 +44,3 @@ private: }; } - -#endif diff --git a/cpp/src/Glacier2/ClientBlobject.h b/cpp/src/Glacier2/ClientBlobject.h index 0dcf4c728e4..0e1143051b6 100644 --- a/cpp/src/Glacier2/ClientBlobject.h +++ b/cpp/src/Glacier2/ClientBlobject.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef CLIENT_BLOBJECT_H -#define CLIENT_BLOBJECT_H +#pragma once #include <Glacier2/Blobject.h> #include <Glacier2/Session.h> @@ -50,5 +49,3 @@ private: const int _rejectTraceLevel; }; } - -#endif diff --git a/cpp/src/Glacier2/CryptPermissionsVerifierI.h b/cpp/src/Glacier2/CryptPermissionsVerifierI.h index 143c1afa1d9..b7a61847c62 100644 --- a/cpp/src/Glacier2/CryptPermissionsVerifierI.h +++ b/cpp/src/Glacier2/CryptPermissionsVerifierI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GLACIER2_CRYPT_PERMISSIONS_VERIFIER_I_H -#define GLACIER2_CRYPT_PERMISSIONS_VERIFIER_I_H +#pragma once #include <Ice/Ice.h> #include <Glacier2/PermissionsVerifier.h> @@ -30,5 +29,3 @@ private: }; } - -#endif diff --git a/cpp/src/Glacier2/FilterI.h b/cpp/src/Glacier2/FilterI.h index e2c81f0f221..20a9cb873c8 100644 --- a/cpp/src/Glacier2/FilterI.h +++ b/cpp/src/Glacier2/FilterI.h @@ -6,8 +6,8 @@ // ICE_LICENSE file included in this distribution. // // ********************************************************************** -#ifndef FILTER_I_H -#define FILTER_I_H + +#pragma once #include <Glacier2/Session.h> @@ -176,5 +176,3 @@ typedef FilterT<std::string, Glacier2::StringSet> StringSetI; typedef IceUtil::Handle< FilterT<std::string, Glacier2::StringSet> > StringSetIPtr; }; - -#endif diff --git a/cpp/src/Glacier2/FilterManager.h b/cpp/src/Glacier2/FilterManager.h index 0506c9c197b..0c0e8108981 100644 --- a/cpp/src/Glacier2/FilterManager.h +++ b/cpp/src/Glacier2/FilterManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FILTER_MANAGER_H -#define FILTER_MANAGER_H +#pragma once // // It'd be better if we didn't have to include this everywhere, but @@ -84,6 +83,3 @@ private: FilterManager(const InstancePtr& , const StringSetIPtr&, const StringSetIPtr&, const IdentitySetIPtr&); }; }; - -#endif /* FILTER_MANAGER_H */ - diff --git a/cpp/src/Glacier2/Instance.h b/cpp/src/Glacier2/Instance.h index fe49c0ddcad..4bde3b585db 100644 --- a/cpp/src/Glacier2/Instance.h +++ b/cpp/src/Glacier2/Instance.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GLACIER2_INSTANCE_H -#define GLACIER2_INSTANCE_H +#pragma once #include <Ice/CommunicatorF.h> #include <Ice/ObjectAdapterF.h> @@ -60,5 +59,3 @@ private: typedef IceUtil::Handle<Instance> InstancePtr; } // End namespace Glacier2 - -#endif diff --git a/cpp/src/Glacier2/ProxyVerifier.h b/cpp/src/Glacier2/ProxyVerifier.h index 9a281d7f176..38133aaa271 100644 --- a/cpp/src/Glacier2/ProxyVerifier.h +++ b/cpp/src/Glacier2/ProxyVerifier.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_PROXY_VERIFIER_H -#define ICE_PROXY_VERIFIER_H +#pragma once #include <Ice/Ice.h> #include <vector> @@ -56,4 +55,3 @@ private: typedef IceUtil::Handle<ProxyVerifier> ProxyVerifierPtr; } -#endif diff --git a/cpp/src/Glacier2/RequestQueue.h b/cpp/src/Glacier2/RequestQueue.h index 949b6bf1b2a..5fecdff2879 100644 --- a/cpp/src/Glacier2/RequestQueue.h +++ b/cpp/src/Glacier2/RequestQueue.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef REQUEST_H -#define REQUEST_H +#pragma once #include <IceUtil/Thread.h> #include <IceUtil/Monitor.h> @@ -114,5 +113,3 @@ private: }; } - -#endif diff --git a/cpp/src/Glacier2/RouterI.h b/cpp/src/Glacier2/RouterI.h index f0aeb23442b..619ef513b48 100644 --- a/cpp/src/Glacier2/RouterI.h +++ b/cpp/src/Glacier2/RouterI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GLACIER2_ROUTER_I_H -#define GLACIER2_ROUTER_I_H +#pragma once #include <Ice/Ice.h> #include <Glacier2/Router.h> @@ -75,5 +74,3 @@ private: }; } - -#endif diff --git a/cpp/src/Glacier2/RoutingTable.h b/cpp/src/Glacier2/RoutingTable.h index 20ab0b0d212..b49894d4e49 100644 --- a/cpp/src/Glacier2/RoutingTable.h +++ b/cpp/src/Glacier2/RoutingTable.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ROUTING_TABLE_H -#define ICE_ROUTING_TABLE_H +#pragma once #include <Ice/Ice.h> #include <IceUtil/Mutex.h> @@ -55,5 +54,3 @@ private: }; } - -#endif diff --git a/cpp/src/Glacier2/ServerBlobject.h b/cpp/src/Glacier2/ServerBlobject.h index 2d1481e44a4..56fabf9e88f 100644 --- a/cpp/src/Glacier2/ServerBlobject.h +++ b/cpp/src/Glacier2/ServerBlobject.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SERVER_BLOBJECT_H -#define SERVER_BLOBJECT_H +#pragma once #include <Glacier2/Blobject.h> @@ -30,5 +29,3 @@ public: }; } - -#endif diff --git a/cpp/src/Glacier2/SessionRouterI.h b/cpp/src/Glacier2/SessionRouterI.h index 3a45007c60d..a494d1158bf 100644 --- a/cpp/src/Glacier2/SessionRouterI.h +++ b/cpp/src/Glacier2/SessionRouterI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GLACIER2_SESSION_ROUTER_I_H -#define GLACIER2_SESSION_ROUTER_I_H +#pragma once #include <IceUtil/Thread.h> #include <IceUtil/Monitor.h> @@ -159,5 +158,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/Acceptor.h b/cpp/src/Ice/Acceptor.h index 27fdba1a1cb..bc6dba9c43c 100644 --- a/cpp/src/Ice/Acceptor.h +++ b/cpp/src/Ice/Acceptor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ACCEPTOR_H -#define ICE_ACCEPTOR_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/AcceptorF.h> @@ -34,5 +33,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/AcceptorF.h b/cpp/src/Ice/AcceptorF.h index 6e2bc1d60f8..d1dd06c669e 100644 --- a/cpp/src/Ice/AcceptorF.h +++ b/cpp/src/Ice/AcceptorF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ACCEPTOR_F_H -#define ICE_ACCEPTOR_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ ICE_API IceUtil::Shared* upCast(Acceptor*); typedef Handle<Acceptor> AcceptorPtr; } - -#endif diff --git a/cpp/src/Ice/Base64.h b/cpp/src/Ice/Base64.h index 64d16c04823..0de84d1b15c 100644 --- a/cpp/src/Ice/Base64.h +++ b/cpp/src/Ice/Base64.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_BASE_64_H -#define ICE_BASE_64_H +#pragma once #include <Ice/Config.h> #include <string> @@ -32,5 +31,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/CommunicatorI.h b/cpp/src/Ice/CommunicatorI.h index 565a5ccecd6..dc5580180b2 100644 --- a/cpp/src/Ice/CommunicatorI.h +++ b/cpp/src/Ice/CommunicatorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_COMMUNICATOR_I_H -#define ICE_COMMUNICATOR_I_H +#pragma once #include <IceUtil/RecMutex.h> @@ -98,5 +97,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ConnectRequestHandler.h b/cpp/src/Ice/ConnectRequestHandler.h index 491d5b6639a..35a9fe87216 100644 --- a/cpp/src/Ice/ConnectRequestHandler.h +++ b/cpp/src/Ice/ConnectRequestHandler.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECT_REQUEST_HANDLER_H -#define ICE_CONNECT_REQUEST_HANDLER_H +#pragma once #include <IceUtil/Monitor.h> #include <IceUtil/Mutex.h> @@ -89,5 +88,3 @@ private: typedef IceUtil::Handle<ConnectRequestHandler> ConnectRequestHandlerPtr; } - -#endif diff --git a/cpp/src/Ice/ConnectionFactory.h b/cpp/src/Ice/ConnectionFactory.h index 846248b8e40..1ca9233a7bf 100644 --- a/cpp/src/Ice/ConnectionFactory.h +++ b/cpp/src/Ice/ConnectionFactory.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTION_FACTORY_H -#define ICE_CONNECTION_FACTORY_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Monitor.h> @@ -222,5 +221,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ConnectionI.h b/cpp/src/Ice/ConnectionI.h index 8648f8f302c..1f448693a38 100644 --- a/cpp/src/Ice/ConnectionI.h +++ b/cpp/src/Ice/ConnectionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTION_I_H -#define ICE_CONNECTION_I_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Monitor.h> @@ -331,5 +330,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ConnectionMonitor.h b/cpp/src/Ice/ConnectionMonitor.h index 5f09f67405f..19e8a353280 100644 --- a/cpp/src/Ice/ConnectionMonitor.h +++ b/cpp/src/Ice/ConnectionMonitor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTION_MONITOR_H -#define ICE_CONNECTION_MONITOR_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Monitor.h> @@ -47,5 +46,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ConnectionRequestHandler.h b/cpp/src/Ice/ConnectionRequestHandler.h index 45b5678d35f..c05f7d8bf5a 100644 --- a/cpp/src/Ice/ConnectionRequestHandler.h +++ b/cpp/src/Ice/ConnectionRequestHandler.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTION_REQUEST_HANDLER_H -#define ICE_CONNECTION_REQUEST_HANDLER_H +#pragma once #include <Ice/RequestHandler.h> #include <Ice/ReferenceF.h> @@ -43,5 +42,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/Connector.h b/cpp/src/Ice/Connector.h index 58bd62bf900..79e7060421a 100644 --- a/cpp/src/Ice/Connector.h +++ b/cpp/src/Ice/Connector.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTOR_H -#define ICE_CONNECTOR_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/ConnectorF.h> @@ -32,5 +31,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/ConnectorF.h b/cpp/src/Ice/ConnectorF.h index 0e7872c4dbf..91318a048df 100644 --- a/cpp/src/Ice/ConnectorF.h +++ b/cpp/src/Ice/ConnectorF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_CONNECTOR_F_H -#define ICE_CONNECTOR_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ ICE_API IceUtil::Shared* upCast(Connector*); typedef Handle<Connector> ConnectorPtr; } - -#endif diff --git a/cpp/src/Ice/DefaultsAndOverrides.h b/cpp/src/Ice/DefaultsAndOverrides.h index ad8b8d3873b..d0b075e18d9 100644 --- a/cpp/src/Ice/DefaultsAndOverrides.h +++ b/cpp/src/Ice/DefaultsAndOverrides.h @@ -8,8 +8,7 @@ // // ********************************************************************** -#ifndef ICE_DEFAULTS_AND_OVERRIDES_H -#define ICE_DEFAULTS_AND_OVERRIDES_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/DefaultsAndOverridesF.h> @@ -45,5 +44,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/DefaultsAndOverridesF.h b/cpp/src/Ice/DefaultsAndOverridesF.h index 9d2b40287c4..845e2c0ca4a 100644 --- a/cpp/src/Ice/DefaultsAndOverridesF.h +++ b/cpp/src/Ice/DefaultsAndOverridesF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_DEFAULTS_AND_OVERRIDES_F_H -#define ICE_DEFAULTS_AND_OVERRIDES_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ IceUtil::Shared* upCast(DefaultsAndOverrides*); typedef Handle<DefaultsAndOverrides> DefaultsAndOverridesPtr; } - -#endif diff --git a/cpp/src/Ice/EndpointFactoryManager.h b/cpp/src/Ice/EndpointFactoryManager.h index 89bdc493cef..cc8e5fdb21a 100644 --- a/cpp/src/Ice/EndpointFactoryManager.h +++ b/cpp/src/Ice/EndpointFactoryManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ENDPOINT_FACTORY_MANAGER_H -#define ICE_ENDPOINT_FACTORY_MANAGER_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -43,5 +42,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/EndpointFactoryManagerF.h b/cpp/src/Ice/EndpointFactoryManagerF.h index 9123c7dec89..570249ed5e7 100644 --- a/cpp/src/Ice/EndpointFactoryManagerF.h +++ b/cpp/src/Ice/EndpointFactoryManagerF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ENDPOINT_FACTORY_MANAGER_F_H -#define ICE_ENDPOINT_FACTORY_MANAGER_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ IceUtil::Shared* upCast(EndpointFactoryManager*); typedef Handle<EndpointFactoryManager> EndpointFactoryManagerPtr; } - -#endif diff --git a/cpp/src/Ice/EndpointI.h b/cpp/src/Ice/EndpointI.h index 1d170e9bb6d..e00f22bcf28 100644 --- a/cpp/src/Ice/EndpointI.h +++ b/cpp/src/Ice/EndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ENDPOINT_I_H -#define ICE_ENDPOINT_I_H +#pragma once #include <IceUtil/Config.h> #include <IceUtil/Shared.h> @@ -198,5 +197,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/EventHandler.h b/cpp/src/Ice/EventHandler.h index da1df3b93a4..3c7ece52a57 100644 --- a/cpp/src/Ice/EventHandler.h +++ b/cpp/src/Ice/EventHandler.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_EVENT_HANDLER_H -#define ICE_EVENT_HANDLER_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/EventHandlerF.h> @@ -72,5 +71,3 @@ protected: }; } - -#endif diff --git a/cpp/src/Ice/EventHandlerF.h b/cpp/src/Ice/EventHandlerF.h index 9b16cb492dc..3947e19ca6f 100644 --- a/cpp/src/Ice/EventHandlerF.h +++ b/cpp/src/Ice/EventHandlerF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_EVENT_HANDLER_F_H -#define ICE_EVENT_HANDLER_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ ICE_API IceUtil::Shared* upCast(EventHandler*); typedef Handle<EventHandler> EventHandlerPtr; } - -#endif diff --git a/cpp/src/Ice/EventLoggerMsg.h b/cpp/src/Ice/EventLoggerMsg.h index 5934c1f104f..be8c37e8213 100755 --- a/cpp/src/Ice/EventLoggerMsg.h +++ b/cpp/src/Ice/EventLoggerMsg.h @@ -1,11 +1,11 @@ - // ********************************************************************** - // - // Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. - // - // This copy of Ice is licensed to you under the terms described in the - // ICE_LICENSE file included in this distribution. - // - // ********************************************************************** +// ********************************************************************** +// +// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** // // Values are 32 bit values laid out as follows: // diff --git a/cpp/src/Ice/GC.h b/cpp/src/Ice/GC.h index 90a7072e958..a73d8ff722b 100644 --- a/cpp/src/Ice/GC.h +++ b/cpp/src/Ice/GC.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GC_H -#define ICE_GC_H +#pragma once #include <Ice/Config.h> #include <IceUtil/Thread.h> @@ -47,5 +46,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/HashUtil.h b/cpp/src/Ice/HashUtil.h index fcc5644a99a..7b6c7f6a27b 100644 --- a/cpp/src/Ice/HashUtil.h +++ b/cpp/src/Ice/HashUtil.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_HASH_UTIL_H -#define ICE_HASH_UTIL_H +#pragma once namespace IceInternal { @@ -55,6 +54,3 @@ hashAdd(Ice::Int& hashCode, const std::map<K, V>& map) } - -#endif - diff --git a/cpp/src/Ice/ImplicitContextI.h b/cpp/src/Ice/ImplicitContextI.h index 8125f7a92a3..b781db796bc 100644 --- a/cpp/src/Ice/ImplicitContextI.h +++ b/cpp/src/Ice/ImplicitContextI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_IMPLICIT_CONTEXT_I_H -#define ICE_IMPLICIT_CONTEXT_I_H +#pragma once #include <Ice/ImplicitContext.h> @@ -48,4 +47,3 @@ public: typedef IceInternal::Handle<ImplicitContextI> ImplicitContextIPtr; } -#endif diff --git a/cpp/src/Ice/IncomingRequest.h b/cpp/src/Ice/IncomingRequest.h index b163c86a39a..2cb1ca7e785 100644 --- a/cpp/src/Ice/IncomingRequest.h +++ b/cpp/src/Ice/IncomingRequest.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_INCOMING_REQUEST_H -#define ICE_INCOMING_REQUEST_H +#pragma once #include <Ice/Incoming.h> #include <Ice/Object.h> @@ -34,5 +33,3 @@ public: Incoming& _in; }; } - -#endif diff --git a/cpp/src/Ice/Instance.h b/cpp/src/Ice/Instance.h index b39e88ce838..91a97009de6 100644 --- a/cpp/src/Ice/Instance.h +++ b/cpp/src/Ice/Instance.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_INSTANCE_H -#define ICE_INSTANCE_H +#pragma once #include <IceUtil/Config.h> #include <IceUtil/Shared.h> @@ -159,5 +158,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/LocatorInfo.h b/cpp/src/Ice/LocatorInfo.h index 13bbb2f98bc..7ec892f1626 100644 --- a/cpp/src/Ice/LocatorInfo.h +++ b/cpp/src/Ice/LocatorInfo.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_LOCATOR_INFO_H -#define ICE_LOCATOR_INFO_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -181,5 +180,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/LocatorInfoF.h b/cpp/src/Ice/LocatorInfoF.h index 3666e182700..817aa6cb651 100644 --- a/cpp/src/Ice/LocatorInfoF.h +++ b/cpp/src/Ice/LocatorInfoF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_LOCATOR_INFO_F_H -#define ICE_LOCATOR_INFO_F_H +#pragma once #include <IceUtil/Shared.h> @@ -30,5 +29,3 @@ IceUtil::Shared* upCast(LocatorTable*); typedef Handle<LocatorTable> LocatorTablePtr; } - -#endif diff --git a/cpp/src/Ice/LoggerI.h b/cpp/src/Ice/LoggerI.h index dfab4451764..6f1ce6457b0 100644 --- a/cpp/src/Ice/LoggerI.h +++ b/cpp/src/Ice/LoggerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_LOGGER_I_H -#define ICE_LOGGER_I_H +#pragma once #include <Ice/Logger.h> #include <IceUtil/FileUtil.h> @@ -41,5 +40,3 @@ private: typedef IceUtil::Handle<LoggerI> LoggerIPtr; } - -#endif diff --git a/cpp/src/Ice/Network.h b/cpp/src/Ice/Network.h index 66c700dbf23..b8e30a34876 100644 --- a/cpp/src/Ice/Network.h +++ b/cpp/src/Ice/Network.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_NETWORK_H -#define ICE_NETWORK_H +#pragma once #ifdef __hpux # define _XOPEN_SOURCE_EXTENDED @@ -237,5 +236,3 @@ ICE_API void doConnectAsync(SOCKET, const Address&, AsyncInfo&); ICE_API void doFinishConnectAsync(SOCKET, AsyncInfo&); #endif } - -#endif diff --git a/cpp/src/Ice/ObjectAdapterFactory.h b/cpp/src/Ice/ObjectAdapterFactory.h index 9523f65748f..dc7003e7950 100644 --- a/cpp/src/Ice/ObjectAdapterFactory.h +++ b/cpp/src/Ice/ObjectAdapterFactory.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_OBJECT_ADAPTER_FACTORY_H -#define ICE_OBJECT_ADAPTER_FACTORY_H +#pragma once #include <Ice/ObjectAdapterI.h> #include <IceUtil/RecMutex.h> @@ -46,5 +45,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ObjectAdapterI.h b/cpp/src/Ice/ObjectAdapterI.h index d3eed147890..c74f8bec8ed 100644 --- a/cpp/src/Ice/ObjectAdapterI.h +++ b/cpp/src/Ice/ObjectAdapterI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_OBJECT_ADAPTER_I_H -#define ICE_OBJECT_ADAPTER_I_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/RecMutex.h> @@ -141,5 +140,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ObjectFactoryManager.h b/cpp/src/Ice/ObjectFactoryManager.h index 424610d5131..0c963b509eb 100644 --- a/cpp/src/Ice/ObjectFactoryManager.h +++ b/cpp/src/Ice/ObjectFactoryManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SERVANT_FACTORY_MANAGER_H -#define ICE_SERVANT_FACTORY_MANAGER_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -39,5 +38,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ObjectFactoryManagerF.h b/cpp/src/Ice/ObjectFactoryManagerF.h index 9223e8290e8..5befe55a0d0 100644 --- a/cpp/src/Ice/ObjectFactoryManagerF.h +++ b/cpp/src/Ice/ObjectFactoryManagerF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SERVANT_FACTORY_MANAGER_F_H -#define ICE_SERVANT_FACTORY_MANAGER_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ IceUtil::Shared* upCast(ObjectFactoryManager*); typedef Handle<ObjectFactoryManager> ObjectFactoryManagerPtr; } - -#endif diff --git a/cpp/src/Ice/OpaqueEndpointI.h b/cpp/src/Ice/OpaqueEndpointI.h index 6d9b4112667..2cdde0f745f 100644 --- a/cpp/src/Ice/OpaqueEndpointI.h +++ b/cpp/src/Ice/OpaqueEndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_UNKNOWN_ENDPOINT_I_H -#define ICE_UNKNOWN_ENDPOINT_I_H +#pragma once #include <Ice/EndpointI.h> #include <Ice/EndpointFactory.h> @@ -59,5 +58,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/PluginManagerI.h b/cpp/src/Ice/PluginManagerI.h index 8918c3dfc33..ecb73fa3a43 100644 --- a/cpp/src/Ice/PluginManagerI.h +++ b/cpp/src/Ice/PluginManagerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_PLUGIN_MANAGER_I_H -#define ICE_PLUGIN_MANAGER_I_H +#pragma once #include <Ice/Plugin.h> #include <Ice/InstanceF.h> @@ -59,6 +58,3 @@ private: typedef IceUtil::Handle<PluginManagerI> PluginManagerIPtr; } - - -#endif diff --git a/cpp/src/Ice/PropertiesI.h b/cpp/src/Ice/PropertiesI.h index 79a94e7af37..ee6df06c1bb 100644 --- a/cpp/src/Ice/PropertiesI.h +++ b/cpp/src/Ice/PropertiesI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_PROPERTIES_I_H -#define ICE_PROPERTIES_I_H +#pragma once #include <IceUtil/Mutex.h> #include <Ice/Properties.h> @@ -89,5 +88,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h index 8867fa8948f..61f675e9675 100644 --- a/cpp/src/Ice/PropertyNames.h +++ b/cpp/src/Ice/PropertyNames.h @@ -12,8 +12,7 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! -#ifndef ICE_INTERNAL_PropertyNames_H -#define ICE_INTERNAL_PropertyNames_H +#pragma once #include <Ice/Config.h> @@ -75,5 +74,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/ProxyFactory.h b/cpp/src/Ice/ProxyFactory.h index 0c94420816c..80dcd548bb7 100644 --- a/cpp/src/Ice/ProxyFactory.h +++ b/cpp/src/Ice/ProxyFactory.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_PROXY_FACTORY_H -#define ICE_PROXY_FACTORY_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -53,5 +52,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/Reference.h b/cpp/src/Ice/Reference.h index e0be9af7b3a..615275af993 100644 --- a/cpp/src/Ice/Reference.h +++ b/cpp/src/Ice/Reference.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_REFERENCE_H -#define ICE_REFERENCE_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/RecMutex.h> @@ -294,5 +293,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ReferenceFactory.h b/cpp/src/Ice/ReferenceFactory.h index dd1982f96de..cafd428f07e 100644 --- a/cpp/src/Ice/ReferenceFactory.h +++ b/cpp/src/Ice/ReferenceFactory.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_REFERENCE_FACTORY_H -#define ICE_REFERENCE_FACTORY_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/ReferenceFactoryF.h> @@ -76,5 +75,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ReferenceFactoryF.h b/cpp/src/Ice/ReferenceFactoryF.h index 52c8ea0a17c..4ed346064ca 100644 --- a/cpp/src/Ice/ReferenceFactoryF.h +++ b/cpp/src/Ice/ReferenceFactoryF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_REFERENCE_FACTORY_F_H -#define ICE_REFERENCE_FACTORY_F_H +#pragma once #include <Ice/Handle.h> @@ -20,5 +19,3 @@ IceUtil::Shared* upCast(ReferenceFactory*); typedef Handle<ReferenceFactory> ReferenceFactoryPtr; } - -#endif diff --git a/cpp/src/Ice/ReplyStatus.h b/cpp/src/Ice/ReplyStatus.h index 0f3dccad897..ff6929ca72a 100644 --- a/cpp/src/Ice/ReplyStatus.h +++ b/cpp/src/Ice/ReplyStatus.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_REPLY_STATUS_H -#define ICE_REPLY_STATUS_H +#pragma once #include <Ice/Config.h> @@ -25,5 +24,3 @@ static const Ice::Byte replyUnknownUserException = 6; static const Ice::Byte replyUnknownException = 7; } - -#endif diff --git a/cpp/src/Ice/RequestHandler.h b/cpp/src/Ice/RequestHandler.h index 3efd72108fb..1dd85e9ace3 100644 --- a/cpp/src/Ice/RequestHandler.h +++ b/cpp/src/Ice/RequestHandler.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_REQUEST_HANDLER_H -#define ICE_REQUEST_HANDLER_H +#pragma once #include <IceUtil/Shared.h> @@ -52,5 +51,3 @@ protected: }; } - -#endif diff --git a/cpp/src/Ice/RetryQueue.h b/cpp/src/Ice/RetryQueue.h index fdfcaa1fe70..b0a875d1a32 100644 --- a/cpp/src/Ice/RetryQueue.h +++ b/cpp/src/Ice/RetryQueue.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_RETRY_QUEUE_H -#define ICE_RETRY_QUEUE_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -57,6 +56,3 @@ private: }; } - -#endif - diff --git a/cpp/src/Ice/RetryQueueF.h b/cpp/src/Ice/RetryQueueF.h index 2cdea2a6c53..ca39e18b7e5 100644 --- a/cpp/src/Ice/RetryQueueF.h +++ b/cpp/src/Ice/RetryQueueF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_RETRY_QUEUE_F_H -#define ICE_RETRY_QUEUE_F_H +#pragma once #include <Ice/Handle.h> @@ -20,5 +19,3 @@ IceUtil::Shared* upCast(RetryQueue*); typedef Handle<RetryQueue> RetryQueuePtr; } - -#endif diff --git a/cpp/src/Ice/RouterInfo.h b/cpp/src/Ice/RouterInfo.h index 9e94bee435f..52801b57651 100644 --- a/cpp/src/Ice/RouterInfo.h +++ b/cpp/src/Ice/RouterInfo.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ROUTER_INFO_H -#define ICE_ROUTER_INFO_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -104,5 +103,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/RouterInfoF.h b/cpp/src/Ice/RouterInfoF.h index ecdb4074873..e05324c01cf 100644 --- a/cpp/src/Ice/RouterInfoF.h +++ b/cpp/src/Ice/RouterInfoF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_ROUTER_INFO_F_H -#define ICE_ROUTER_INFO_F_H +#pragma once #include <IceUtil/Shared.h> @@ -26,5 +25,3 @@ IceUtil::Shared* upCast(RouterInfo*); typedef Handle<RouterInfo> RouterInfoPtr; } - -#endif diff --git a/cpp/src/Ice/Selector.h b/cpp/src/Ice/Selector.h index 4ba45a9e4f3..cf3e152ff55 100644 --- a/cpp/src/Ice/Selector.h +++ b/cpp/src/Ice/Selector.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SELECTOR_H -#define ICE_SELECTOR_H +#pragma once #include <IceUtil/StringUtil.h> @@ -225,5 +224,3 @@ private: #endif } - -#endif diff --git a/cpp/src/Ice/ServantManager.h b/cpp/src/Ice/ServantManager.h index 5ee56eb4e02..3f2f63402e8 100644 --- a/cpp/src/Ice/ServantManager.h +++ b/cpp/src/Ice/ServantManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SERVANT_MANAGER_H -#define ICE_SERVANT_MANAGER_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -70,5 +69,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/SharedContext.h b/cpp/src/Ice/SharedContext.h index 48910f7270b..8e906d8527e 100644 --- a/cpp/src/Ice/SharedContext.h +++ b/cpp/src/Ice/SharedContext.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SHARED_CONTEXT_H -#define ICE_SHARED_CONTEXT_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Handle.h> @@ -47,5 +46,3 @@ private: }; typedef IceUtil::Handle<SharedContext> SharedContextPtr; } - -#endif diff --git a/cpp/src/Ice/StreamI.h b/cpp/src/Ice/StreamI.h index 066c2c6e32b..9356572ac49 100644 --- a/cpp/src/Ice/StreamI.h +++ b/cpp/src/Ice/StreamI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_STREAM_I_H -#define ICE_STREAM_I_H +#pragma once #include <Ice/Stream.h> @@ -218,5 +217,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/SysLoggerI.h b/cpp/src/Ice/SysLoggerI.h index 5074f6af57f..7675fb77fe7 100644 --- a/cpp/src/Ice/SysLoggerI.h +++ b/cpp/src/Ice/SysLoggerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SYS_LOGGER_I_H -#define ICE_SYS_LOGGER_I_H +#pragma once #include <IceUtil/Mutex.h> #include <Ice/Logger.h> @@ -37,5 +36,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/TcpAcceptor.h b/cpp/src/Ice/TcpAcceptor.h index c54ae4dbb27..8f4a8f78cc6 100644 --- a/cpp/src/Ice/TcpAcceptor.h +++ b/cpp/src/Ice/TcpAcceptor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_ACCEPTOR_H -#define ICE_TCP_ACCEPTOR_H +#pragma once #include <Ice/TransceiverF.h> #include <Ice/InstanceF.h> @@ -64,5 +63,4 @@ private: }; } -#endif diff --git a/cpp/src/Ice/TcpConnector.h b/cpp/src/Ice/TcpConnector.h index 3b6862cc13b..29fd006ec71 100644 --- a/cpp/src/Ice/TcpConnector.h +++ b/cpp/src/Ice/TcpConnector.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_CONNECTOR_H -#define ICE_TCP_CONNECTOR_H +#pragma once #include <Ice/TransceiverF.h> #include <Ice/InstanceF.h> @@ -48,5 +47,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/TcpEndpointI.h b/cpp/src/Ice/TcpEndpointI.h index 96c0e6a94e1..7060e23ec75 100644 --- a/cpp/src/Ice/TcpEndpointI.h +++ b/cpp/src/Ice/TcpEndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_ENDPOINT_I_H -#define ICE_TCP_ENDPOINT_I_H +#pragma once #include <IceUtil/Config.h> #include <Ice/EndpointI.h> @@ -84,5 +83,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/TcpTransceiver.h b/cpp/src/Ice/TcpTransceiver.h index 82099820416..01fd7ac3d11 100644 --- a/cpp/src/Ice/TcpTransceiver.h +++ b/cpp/src/Ice/TcpTransceiver.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_TRANSCEIVER_H -#define ICE_TCP_TRANSCEIVER_H +#pragma once #include <Ice/InstanceF.h> #include <Ice/TraceLevelsF.h> @@ -81,5 +80,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h index 3802d3a75e0..a3deceff4c2 100644 --- a/cpp/src/Ice/ThreadPool.h +++ b/cpp/src/Ice/ThreadPool.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_THREAD_POOL_H -#define ICE_THREAD_POOL_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Mutex.h> @@ -356,6 +355,3 @@ private: #endif }; - - -#endif diff --git a/cpp/src/Ice/ThreadPoolF.h b/cpp/src/Ice/ThreadPoolF.h index 0c44f48db9a..a658181cf6c 100644 --- a/cpp/src/Ice/ThreadPoolF.h +++ b/cpp/src/Ice/ThreadPoolF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_THREAD_POOL_F_H -#define ICE_THREAD_POOL_F_H +#pragma once #include <IceUtil/Shared.h> @@ -28,5 +27,3 @@ typedef Handle<ThreadPoolWorkItem> ThreadPoolWorkItemPtr; class ThreadPoolCurrent; } - -#endif diff --git a/cpp/src/Ice/TraceLevels.h b/cpp/src/Ice/TraceLevels.h index c562c3e4be4..34841ab0a9f 100644 --- a/cpp/src/Ice/TraceLevels.h +++ b/cpp/src/Ice/TraceLevels.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TRACE_LEVELS_H -#define ICE_TRACE_LEVELS_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/TraceLevelsF.h> @@ -46,5 +45,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/TraceLevelsF.h b/cpp/src/Ice/TraceLevelsF.h index da3a12d0b98..42dc6fc5380 100644 --- a/cpp/src/Ice/TraceLevelsF.h +++ b/cpp/src/Ice/TraceLevelsF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TRACE_LEVELS_F_H -#define ICE_TRACE_LEVELS_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ ICE_API IceUtil::Shared* upCast(TraceLevels*); typedef Handle<TraceLevels> TraceLevelsPtr; } - -#endif diff --git a/cpp/src/Ice/TraceUtil.h b/cpp/src/Ice/TraceUtil.h index c45cb8b01a0..c0b787a4921 100644 --- a/cpp/src/Ice/TraceUtil.h +++ b/cpp/src/Ice/TraceUtil.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TRACE_UTIL_H -#define ICE_TRACE_UTIL_H +#pragma once #include <Ice/LoggerF.h> #include <Ice/TraceLevelsF.h> @@ -24,5 +23,3 @@ void trace(const char*, const BasicStream&, const ::Ice::LoggerPtr&, const Trace void traceSlicing(const char*, const ::std::string&, const char *, const ::Ice::LoggerPtr&); } - -#endif diff --git a/cpp/src/Ice/Transceiver.h b/cpp/src/Ice/Transceiver.h index 3cf9b9d867a..5c48034ab45 100644 --- a/cpp/src/Ice/Transceiver.h +++ b/cpp/src/Ice/Transceiver.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TRANSCEIVER_H -#define ICE_TRANSCEIVER_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/TransceiverF.h> @@ -42,5 +41,3 @@ public: }; } - -#endif diff --git a/cpp/src/Ice/TransceiverF.h b/cpp/src/Ice/TransceiverF.h index 0c6eae51720..407540d0c9d 100644 --- a/cpp/src/Ice/TransceiverF.h +++ b/cpp/src/Ice/TransceiverF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TRANSCEIVER_F_H -#define ICE_TRANSCEIVER_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ ICE_API IceUtil::Shared* upCast(Transceiver*); typedef Handle<Transceiver> TransceiverPtr; } - -#endif diff --git a/cpp/src/Ice/UdpConnector.h b/cpp/src/Ice/UdpConnector.h index 0055a75638c..abcc78a6f84 100644 --- a/cpp/src/Ice/UdpConnector.h +++ b/cpp/src/Ice/UdpConnector.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_UDP_CONNECTOR_H -#define ICE_UDP_CONNECTOR_H +#pragma once #include <Ice/TransceiverF.h> #include <Ice/InstanceF.h> @@ -51,4 +50,3 @@ private: }; } -#endif diff --git a/cpp/src/Ice/UdpEndpointI.h b/cpp/src/Ice/UdpEndpointI.h index 77cdc2a4827..63266da630e 100644 --- a/cpp/src/Ice/UdpEndpointI.h +++ b/cpp/src/Ice/UdpEndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_UDP_ENDPOINT_I_H -#define ICE_UDP_ENDPOINT_I_H +#pragma once #include <IceUtil/Config.h> #include <Ice/EndpointI.h> @@ -91,5 +90,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/UdpTransceiver.h b/cpp/src/Ice/UdpTransceiver.h index 0a1fc7155ba..a189f5263f9 100644 --- a/cpp/src/Ice/UdpTransceiver.h +++ b/cpp/src/Ice/UdpTransceiver.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_UDP_TRANSCEIVER_H -#define ICE_UDP_TRANSCEIVER_H +#pragma once #include <Ice/InstanceF.h> #include <Ice/TraceLevelsF.h> @@ -117,4 +116,4 @@ private: }; } -#endif + diff --git a/cpp/src/Ice/winrt/StreamAcceptor.h b/cpp/src/Ice/winrt/StreamAcceptor.h index d5f84422442..f18d5f3439e 100644 --- a/cpp/src/Ice/winrt/StreamAcceptor.h +++ b/cpp/src/Ice/winrt/StreamAcceptor.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_STREAM_ACCEPTOR_H -#define ICE_STREAM_ACCEPTOR_H +#pragma once #include <Ice/TransceiverF.h> #include <Ice/InstanceF.h> @@ -65,5 +64,3 @@ private: }; } -#endif - diff --git a/cpp/src/Ice/winrt/StreamConnector.h b/cpp/src/Ice/winrt/StreamConnector.h index 88f8721083a..799adfc18c7 100644 --- a/cpp/src/Ice/winrt/StreamConnector.h +++ b/cpp/src/Ice/winrt/StreamConnector.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_CONNECTOR_H -#define ICE_TCP_CONNECTOR_H +#pragma once #include <Ice/TransceiverF.h> #include <Ice/InstanceF.h> @@ -49,5 +48,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/winrt/StreamEndpointI.h b/cpp/src/Ice/winrt/StreamEndpointI.h index 6d102ff3647..cd7a4cc6549 100644 --- a/cpp/src/Ice/winrt/StreamEndpointI.h +++ b/cpp/src/Ice/winrt/StreamEndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_TCP_ENDPOINT_I_H -#define ICE_TCP_ENDPOINT_I_H +#pragma once #include <IceUtil/Config.h> #include <Ice/EndpointI.h> @@ -86,5 +85,3 @@ private: }; } - -#endif diff --git a/cpp/src/Ice/winrt/StreamTransceiver.h b/cpp/src/Ice/winrt/StreamTransceiver.h index 11d27eee6ff..ffab6874589 100644 --- a/cpp/src/Ice/winrt/StreamTransceiver.h +++ b/cpp/src/Ice/winrt/StreamTransceiver.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_STREAM_TRANSCEIVER_H -#define ICE_STREAM_TRANSCEIVER_H +#pragma once #include <Ice/InstanceF.h> #include <Ice/TraceLevelsF.h> @@ -89,5 +88,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceBox/ServiceManagerI.h b/cpp/src/IceBox/ServiceManagerI.h index 0d381d009b6..a613ae1b3f8 100644 --- a/cpp/src/IceBox/ServiceManagerI.h +++ b/cpp/src/IceBox/ServiceManagerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SERVICE_MANAGER_I_H -#define SERVICE_MANAGER_I_H +#pragma once #include <IceBox/IceBox.h> #include <Ice/LoggerF.h> @@ -86,5 +85,3 @@ private: typedef IceUtil::Handle<ServiceManagerI> ServiceManagerIPtr; } - -#endif diff --git a/cpp/src/IceDB/FreezeTypes.h b/cpp/src/IceDB/FreezeTypes.h index eae71eb0236..266b5c3a614 100644 --- a/cpp/src/IceDB/FreezeTypes.h +++ b/cpp/src/IceDB/FreezeTypes.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_TYPES_H -#define FREEZE_TYPES_H +#pragma once #include <IceDB/IceDB.h> #include <Freeze/Freeze.h> @@ -202,6 +201,3 @@ protected: }; } - -#endif - diff --git a/cpp/src/IceDB/IceDB.h b/cpp/src/IceDB/IceDB.h index 01e216bb0d7..3a1567a82a5 100644 --- a/cpp/src/IceDB/IceDB.h +++ b/cpp/src/IceDB/IceDB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_DB_H -#define ICE_DB_H +#pragma once #include <IceUtil/Exception.h> #include <IceUtil/Shared.h> @@ -114,5 +113,3 @@ public: }; }; - -#endif diff --git a/cpp/src/IceDB/SqlTypes.h b/cpp/src/IceDB/SqlTypes.h index 415f3f41edb..4866bfce0a0 100644 --- a/cpp/src/IceDB/SqlTypes.h +++ b/cpp/src/IceDB/SqlTypes.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_TYPES_H -#define SQL_TYPES_H +#pragma once #include <IceDB/IceDB.h> @@ -198,5 +197,3 @@ protected: }; } - -#endif diff --git a/cpp/src/IceGrid/Activator.h b/cpp/src/IceGrid/Activator.h index 99af1b1fa84..3e0ecc14c6e 100644 --- a/cpp/src/IceGrid/Activator.h +++ b/cpp/src/IceGrid/Activator.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ACTIVATOR_H -#define ICE_GRID_ACTIVATOR_H +#pragma once #include <IceUtil/Thread.h> #include <IceGrid/Internal.h> @@ -95,5 +94,3 @@ private: typedef IceUtil::Handle<Activator> ActivatorPtr; } - -#endif diff --git a/cpp/src/IceGrid/AdapterCache.h b/cpp/src/IceGrid/AdapterCache.h index 9a42d62b645..9a466b37933 100644 --- a/cpp/src/IceGrid/AdapterCache.h +++ b/cpp/src/IceGrid/AdapterCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ADAPTERCACHE_H -#define ICE_GRID_ADAPTERCACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Shared.h> @@ -146,5 +145,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/AdminCallbackRouter.h b/cpp/src/IceGrid/AdminCallbackRouter.h index 1626ecc6718..0affceba9ef 100644 --- a/cpp/src/IceGrid/AdminCallbackRouter.h +++ b/cpp/src/IceGrid/AdminCallbackRouter.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ADMIN_CALLBACK_ROUTER_H -#define ICE_GRID_ADMIN_CALLBACK_ROUTER_H +#pragma once #include <Ice/Ice.h> #include <IceUtil/IceUtil.h> @@ -42,4 +41,3 @@ private: typedef IceUtil::Handle<AdminCallbackRouter> AdminCallbackRouterPtr; } -#endif diff --git a/cpp/src/IceGrid/AdminI.h b/cpp/src/IceGrid/AdminI.h index 14bb30ea639..5ed1c5ee11c 100644 --- a/cpp/src/IceGrid/AdminI.h +++ b/cpp/src/IceGrid/AdminI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ADMIN_I_H -#define ICE_GRID_ADMIN_I_H +#pragma once #include <IceGrid/Admin.h> @@ -102,5 +101,3 @@ private: typedef IceUtil::Handle<AdminI> AdminIPtr; } - -#endif diff --git a/cpp/src/IceGrid/AdminSessionI.h b/cpp/src/IceGrid/AdminSessionI.h index ff234953ab3..65a699fa3fd 100644 --- a/cpp/src/IceGrid/AdminSessionI.h +++ b/cpp/src/IceGrid/AdminSessionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_ADMINSESSIONI_H -#define ICEGRID_ADMINSESSIONI_H +#pragma once #include <IceGrid/SessionI.h> #include <IceGrid/Topics.h> @@ -147,5 +146,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/Allocatable.h b/cpp/src/IceGrid/Allocatable.h index bcbc018053e..12f1bd25f91 100644 --- a/cpp/src/IceGrid/Allocatable.h +++ b/cpp/src/IceGrid/Allocatable.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ALLOCATABLE_H -#define ICE_GRID_ALLOCATABLE_H +#pragma once #include <IceUtil/Handle.h> #include <IceUtil/Mutex.h> @@ -113,5 +112,3 @@ protected: }; }; - -#endif diff --git a/cpp/src/IceGrid/AllocatableObjectCache.h b/cpp/src/IceGrid/AllocatableObjectCache.h index ef304e712ea..a00c1dd24c6 100644 --- a/cpp/src/IceGrid/AllocatableObjectCache.h +++ b/cpp/src/IceGrid/AllocatableObjectCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_ALLOCATABLEOBJECTCACHE_H -#define ICE_GRID_ALLOCATABLEOBJECTCACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <Ice/CommunicatorF.h> @@ -114,5 +113,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/Cache.h b/cpp/src/IceGrid/Cache.h index 6e85ed1044c..e1bf02705e3 100644 --- a/cpp/src/IceGrid/Cache.h +++ b/cpp/src/IceGrid/Cache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_CACHE_H -#define ICE_GRID_CACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Shared.h> @@ -155,5 +154,3 @@ public: }; }; - -#endif diff --git a/cpp/src/IceGrid/DB.h b/cpp/src/IceGrid/DB.h index 0615f25eecc..eb9607b33f4 100644 --- a/cpp/src/IceGrid/DB.h +++ b/cpp/src/IceGrid/DB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef DATABASE_CACHE_H -#define DATABASE_CACHE_H +#pragma once #include <Ice/Plugin.h> #include <IceDB/IceDB.h> @@ -58,6 +57,3 @@ public: typedef IceUtil::Handle<DatabasePlugin> DatabasePluginPtr; } - - -#endif diff --git a/cpp/src/IceGrid/Database.h b/cpp/src/IceGrid/Database.h index 18c0b337fe5..bd437619dcf 100644 --- a/cpp/src/IceGrid/Database.h +++ b/cpp/src/IceGrid/Database.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_DATABASE_H -#define ICE_GRID_DATABASE_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Shared.h> @@ -237,5 +236,3 @@ private: typedef IceUtil::Handle<Database> DatabasePtr; }; - -#endif diff --git a/cpp/src/IceGrid/DescriptorBuilder.h b/cpp/src/IceGrid/DescriptorBuilder.h index 8472e4bf4fd..3ce9b7ab64b 100644 --- a/cpp/src/IceGrid/DescriptorBuilder.h +++ b/cpp/src/IceGrid/DescriptorBuilder.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_DESCRIPTOR_BUILDER_H -#define ICE_GRID_DESCRIPTOR_BUILDER_H +#pragma once #include <Ice/Logger.h> #include <IceXML/Parser.h> @@ -311,5 +310,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/DescriptorHelper.h b/cpp/src/IceGrid/DescriptorHelper.h index dbc72e919c9..b2b012c5e49 100644 --- a/cpp/src/IceGrid/DescriptorHelper.h +++ b/cpp/src/IceGrid/DescriptorHelper.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_DESCRIPTOR_HELPER_H -#define ICE_GRID_DESCRIPTOR_HELPER_H +#pragma once #include <IceUtil/OutputUtil.h> #include <IceXML/Parser.h> @@ -344,5 +343,3 @@ bool descriptorEqual(const ServerDescriptorPtr&, const ServerDescriptorPtr&); ServerHelperPtr createHelper(const ServerDescriptorPtr&); } - -#endif diff --git a/cpp/src/IceGrid/DescriptorParser.h b/cpp/src/IceGrid/DescriptorParser.h index ed808d01ad3..3404a87f7cb 100644 --- a/cpp/src/IceGrid/DescriptorParser.h +++ b/cpp/src/IceGrid/DescriptorParser.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_DESCRIPTOR_PARSER_H -#define ICEGRID_DESCRIPTOR_PARSER_H +#pragma once namespace IceGrid { @@ -28,5 +27,3 @@ public: }; } - -#endif diff --git a/cpp/src/IceGrid/FileCache.h b/cpp/src/IceGrid/FileCache.h index eeded1132a2..70de97d1d09 100644 --- a/cpp/src/IceGrid/FileCache.h +++ b/cpp/src/IceGrid/FileCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_FILE_CACHE_H -#define ICE_GRID_FILE_CACHE_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/BuiltinSequences.h> @@ -33,5 +32,3 @@ private: typedef IceUtil::Handle<FileCache> FileCachePtr; }; - -#endif diff --git a/cpp/src/IceGrid/FileParserI.h b/cpp/src/IceGrid/FileParserI.h index 811236ed729..11c2b63f407 100644 --- a/cpp/src/IceGrid/FileParserI.h +++ b/cpp/src/IceGrid/FileParserI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_FILE_PARSERI_H -#define ICE_GRID_FILE_PARSERI_H +#pragma once #include <IceGrid/FileParser.h> @@ -19,5 +18,3 @@ public: IceGrid::ApplicationDescriptor parse(const std::string& file, const IceGrid::AdminPrx& admin, const Ice::Current&); }; - -#endif diff --git a/cpp/src/IceGrid/FileUserAccountMapperI.h b/cpp/src/IceGrid/FileUserAccountMapperI.h index f2e978ab102..4112621bd88 100644 --- a/cpp/src/IceGrid/FileUserAccountMapperI.h +++ b/cpp/src/IceGrid/FileUserAccountMapperI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_FILEUSERACCOUNTMAPPERI_H -#define ICE_GRID_FILEUSERACCOUNTMAPPERI_H +#pragma once #include <IceGrid/UserAccountMapper.h> @@ -29,5 +28,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/FreezeDB/FreezeDB.h b/cpp/src/IceGrid/FreezeDB/FreezeDB.h index e86c5bd3e69..47bcbb9fc22 100644 --- a/cpp/src/IceGrid/FreezeDB/FreezeDB.h +++ b/cpp/src/IceGrid/FreezeDB/FreezeDB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_DATABASE_CACHE_H -#define FREEZE_DATABASE_CACHE_H +#pragma once #include <IceDB/FreezeTypes.h> @@ -48,5 +47,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/InternalRegistryI.h b/cpp/src/IceGrid/InternalRegistryI.h index 613bbef367c..42400f346b3 100644 --- a/cpp/src/IceGrid/InternalRegistryI.h +++ b/cpp/src/IceGrid/InternalRegistryI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_INTERNALREGISTRYI_H -#define ICE_GRID_INTERNALREGISTRYI_H +#pragma once #include <IceGrid/Registry.h> #include <IceGrid/Internal.h> @@ -73,5 +72,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/LocatorI.h b/cpp/src/IceGrid/LocatorI.h index 6e5fb87618b..1ea9447380e 100644 --- a/cpp/src/IceGrid/LocatorI.h +++ b/cpp/src/IceGrid/LocatorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_LOCATOR_I_H -#define ICE_GRID_LOCATOR_I_H +#pragma once #include <IceGrid/Internal.h> #include <IceGrid/Locator.h> @@ -80,5 +79,3 @@ protected: }; } - -#endif diff --git a/cpp/src/IceGrid/LocatorRegistryI.h b/cpp/src/IceGrid/LocatorRegistryI.h index 7d4065034d8..44bc8e7007d 100644 --- a/cpp/src/IceGrid/LocatorRegistryI.h +++ b/cpp/src/IceGrid/LocatorRegistryI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_LOCATOR_REGISTRY_I_H -#define ICE_GRID_LOCATOR_REGISTRY_I_H +#pragma once #include <IceGrid/Internal.h> #include <Ice/Locator.h> @@ -55,5 +54,3 @@ private: typedef IceUtil::Handle<LocatorRegistryI> LocatorRegistryIPtr; } - -#endif diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h index a00f2ce3ba2..03b3a1a914d 100644 --- a/cpp/src/IceGrid/NodeCache.h +++ b/cpp/src/IceGrid/NodeCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_NODECACHE_H -#define ICE_GRID_NODECACHE_H +#pragma once #include <IceUtil/RecMutex.h> #include <IceUtil/Shared.h> @@ -104,5 +103,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/NodeI.h b/cpp/src/IceGrid/NodeI.h index fa9a90c09f0..4d29d853147 100644 --- a/cpp/src/IceGrid/NodeI.h +++ b/cpp/src/IceGrid/NodeI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_NODE_I_H -#define ICE_GRID_NODE_I_H +#pragma once #include <IceUtil/Timer.h> #include <IcePatch2/FileServer.h> @@ -175,5 +174,3 @@ private: typedef IceUtil::Handle<NodeI> NodeIPtr; } - -#endif diff --git a/cpp/src/IceGrid/NodeServerAdminRouter.h b/cpp/src/IceGrid/NodeServerAdminRouter.h index c649a874152..744e13af22d 100644 --- a/cpp/src/IceGrid/NodeServerAdminRouter.h +++ b/cpp/src/IceGrid/NodeServerAdminRouter.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_NODE_SERVER_ADMIN_ROUTER_H -#define ICE_GRID_NODE_SERVER_ADMIN_ROUTER_H +#pragma once #include <IceGrid/NodeI.h> @@ -29,4 +28,3 @@ private: NodeIPtr _node; }; } -#endif diff --git a/cpp/src/IceGrid/NodeSessionI.h b/cpp/src/IceGrid/NodeSessionI.h index 4e813f26332..55c18fc8e81 100644 --- a/cpp/src/IceGrid/NodeSessionI.h +++ b/cpp/src/IceGrid/NodeSessionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_NODE_SESSION_H -#define ICEGRID_NODE_SESSION_H +#pragma once #include <IceGrid/Internal.h> #include <set> @@ -101,5 +100,3 @@ private: typedef IceUtil::Handle<NodeSessionI> NodeSessionIPtr; }; - -#endif diff --git a/cpp/src/IceGrid/NodeSessionManager.h b/cpp/src/IceGrid/NodeSessionManager.h index 71bd1d032ea..2d8c4694345 100644 --- a/cpp/src/IceGrid/NodeSessionManager.h +++ b/cpp/src/IceGrid/NodeSessionManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_NODE_SESSION_MANAGER_H -#define ICE_GRID_NODE_SESSION_MANAGER_H +#pragma once #include <IceUtil/Handle.h> #include <IceUtil/Mutex.h> @@ -137,5 +136,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h index 523b90f231e..c1e77dd5e9c 100644 --- a/cpp/src/IceGrid/ObjectCache.h +++ b/cpp/src/IceGrid/ObjectCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_OBJECTCACHE_H -#define ICE_GRID_OBJECTCACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <Ice/CommunicatorF.h> @@ -81,5 +80,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/Parser.h b/cpp/src/IceGrid/Parser.h index f53b3a94002..fb5491a2c36 100644 --- a/cpp/src/IceGrid/Parser.h +++ b/cpp/src/IceGrid/Parser.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_PARSER_H -#define ICE_GRID_PARSER_H +#pragma once #include <IceUtil/Handle.h> #include <IceGrid/Admin.h> @@ -165,5 +164,3 @@ private: extern Parser* parser; // The current parser for bison/flex } - -#endif diff --git a/cpp/src/IceGrid/PlatformInfo.h b/cpp/src/IceGrid/PlatformInfo.h index 1afc7bdb932..1eece75e606 100644 --- a/cpp/src/IceGrid/PlatformInfo.h +++ b/cpp/src/IceGrid/PlatformInfo.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_PLATFORM_INFO_H -#define ICE_GRID_PLATFORM_INFO_H +#pragma once #include <IceUtil/Thread.h> #include <IceGrid/Internal.h> @@ -88,5 +87,3 @@ private: }; - -#endif diff --git a/cpp/src/IceGrid/QueryI.h b/cpp/src/IceGrid/QueryI.h index b64e5cceaac..b1b8baa26c0 100644 --- a/cpp/src/IceGrid/QueryI.h +++ b/cpp/src/IceGrid/QueryI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_QUERY_I_H -#define ICE_GRID_QUERY_I_H +#pragma once #include <IceGrid/Query.h> #include <Ice/CommunicatorF.h> @@ -44,5 +43,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/ReapThread.h b/cpp/src/IceGrid/ReapThread.h index 9d4322dd3d6..2e7906cb6af 100644 --- a/cpp/src/IceGrid/ReapThread.h +++ b/cpp/src/IceGrid/ReapThread.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_REAPER_THREAD_H -#define ICEGRID_REAPER_THREAD_H +#pragma once #include <IceUtil/Thread.h> #include <IceUtil/Mutex.h> @@ -113,5 +112,3 @@ private: typedef IceUtil::Handle<ReapThread> ReapThreadPtr; }; - -#endif diff --git a/cpp/src/IceGrid/RegistryI.h b/cpp/src/IceGrid/RegistryI.h index a17dbb729f9..aa9c7fcb68c 100644 --- a/cpp/src/IceGrid/RegistryI.h +++ b/cpp/src/IceGrid/RegistryI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_REGISTRYI_H -#define ICE_GRID_REGISTRYI_H +#pragma once #include <IceUtil/Timer.h> #include <IceGrid/Registry.h> @@ -133,5 +132,3 @@ private: typedef IceUtil::Handle<RegistryI> RegistryIPtr; } - -#endif diff --git a/cpp/src/IceGrid/RegistryServerAdminRouter.h b/cpp/src/IceGrid/RegistryServerAdminRouter.h index 15ed8161626..e8bb41b7c91 100644 --- a/cpp/src/IceGrid/RegistryServerAdminRouter.h +++ b/cpp/src/IceGrid/RegistryServerAdminRouter.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_REGISTRY_SERVER_ADMIN_ROUTER_H -#define ICE_GRID_REGISTRY_SERVER_ADMIN_ROUTER_H +#pragma once #include <IceGrid/Database.h> @@ -31,4 +30,3 @@ private: }; } -#endif diff --git a/cpp/src/IceGrid/ReplicaCache.h b/cpp/src/IceGrid/ReplicaCache.h index 76c9fa5481e..2eaa7c38229 100644 --- a/cpp/src/IceGrid/ReplicaCache.h +++ b/cpp/src/IceGrid/ReplicaCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_REPLICACACHE_H -#define ICE_GRID_REPLICACACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Shared.h> @@ -74,5 +73,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/ReplicaSessionI.h b/cpp/src/IceGrid/ReplicaSessionI.h index 9ca0ead61ac..27dfd08ee68 100644 --- a/cpp/src/IceGrid/ReplicaSessionI.h +++ b/cpp/src/IceGrid/ReplicaSessionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_REPLICA_SESSION_H -#define ICEGRID_REPLICA_SESSION_H +#pragma once #include <IceGrid/Registry.h> #include <IceGrid/Internal.h> @@ -72,5 +71,3 @@ private: typedef IceUtil::Handle<ReplicaSessionI> ReplicaSessionIPtr; }; - -#endif diff --git a/cpp/src/IceGrid/ReplicaSessionManager.h b/cpp/src/IceGrid/ReplicaSessionManager.h index 84d9da6aa61..28f626a45a0 100644 --- a/cpp/src/IceGrid/ReplicaSessionManager.h +++ b/cpp/src/IceGrid/ReplicaSessionManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_REPLICA_SESSION_MANAGER_H -#define ICE_GRID_REPLICA_SESSION_MANAGER_H +#pragma once #include <IceUtil/Handle.h> #include <IceUtil/Mutex.h> @@ -109,5 +108,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/ServerAdapterI.h b/cpp/src/IceGrid/ServerAdapterI.h index db4ce4cc3fb..c2ad30f8c9b 100644 --- a/cpp/src/IceGrid/ServerAdapterI.h +++ b/cpp/src/IceGrid/ServerAdapterI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_SERVER_ADAPTER_I_H -#define ICE_GRID_SERVER_ADAPTER_I_H +#pragma once #include <IceUtil/Mutex.h> #include <IceGrid/Internal.h> @@ -56,5 +55,3 @@ private: typedef IceUtil::Handle<ServerAdapterI> ServerAdapterIPtr; } - -#endif diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h index c7986a9813e..f1db17fa9b6 100644 --- a/cpp/src/IceGrid/ServerCache.h +++ b/cpp/src/IceGrid/ServerCache.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_SERVERCACHE_H -#define ICE_GRID_SERVERCACHE_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Shared.h> @@ -143,5 +142,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/ServerI.h b/cpp/src/IceGrid/ServerI.h index 591e78854c1..f033a4d8bec 100644 --- a/cpp/src/IceGrid/ServerI.h +++ b/cpp/src/IceGrid/ServerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_SERVER_I_H -#define ICE_GRID_SERVER_I_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Timer.h> @@ -320,5 +319,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/SessionI.h b/cpp/src/IceGrid/SessionI.h index e7ca6f3b863..b1660792e13 100644 --- a/cpp/src/IceGrid/SessionI.h +++ b/cpp/src/IceGrid/SessionI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_SESSIONI_H -#define ICEGRID_SESSIONI_H +#pragma once #include <IceUtil/Mutex.h> #include <IceUtil/Timer.h> @@ -157,5 +156,3 @@ private: }; }; - -#endif diff --git a/cpp/src/IceGrid/SessionManager.h b/cpp/src/IceGrid/SessionManager.h index e23ed3aee6a..756c564cea5 100644 --- a/cpp/src/IceGrid/SessionManager.h +++ b/cpp/src/IceGrid/SessionManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_SESSION_MANAGER_H -#define ICE_GRID_SESSION_MANAGER_H +#pragma once #include <IceUtil/Handle.h> #include <IceUtil/Mutex.h> @@ -314,5 +313,3 @@ protected: }; }; - -#endif diff --git a/cpp/src/IceGrid/SessionServantManager.h b/cpp/src/IceGrid/SessionServantManager.h index 76dfd1f801a..411b9bde459 100644 --- a/cpp/src/IceGrid/SessionServantManager.h +++ b/cpp/src/IceGrid/SessionServantManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_SESSIONSERVANTLOCATOR_H -#define ICE_GRID_SESSIONSERVANTLOCATOR_H +#pragma once #include <IceGrid/AdminCallbackRouter.h> #include <IceUtil/Mutex.h> @@ -84,5 +83,3 @@ private: typedef IceUtil::Handle<SessionServantManager> SessionServantManagerPtr; }; - -#endif diff --git a/cpp/src/IceGrid/SqlDB/SqlDB.h b/cpp/src/IceGrid/SqlDB/SqlDB.h index e3b9d77895c..33809d8082c 100644 --- a/cpp/src/IceGrid/SqlDB/SqlDB.h +++ b/cpp/src/IceGrid/SqlDB/SqlDB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_DATABASE_CACHE_H -#define SQL_DATABASE_CACHE_H +#pragma once #include <IceGrid/DB.h> @@ -63,5 +62,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceGrid/SqlDB/SqlIdentityObjectInfoDict.h b/cpp/src/IceGrid/SqlDB/SqlIdentityObjectInfoDict.h index effb29dff56..dbe90d6509a 100644 --- a/cpp/src/IceGrid/SqlDB/SqlIdentityObjectInfoDict.h +++ b/cpp/src/IceGrid/SqlDB/SqlIdentityObjectInfoDict.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_IDENTITY_OBJECT_INFO_DICT_H -#define SQL_IDENTITY_OBJECT_INFO_DICT_H +#pragma once #include <Ice/CommunicatorF.h> #include <IceGrid/Admin.h> @@ -43,5 +42,3 @@ private: typedef IceUtil::Handle<SqlIdentityObjectInfoDict> SqlIdentityObjectInfoDictPtr; } - -#endif diff --git a/cpp/src/IceGrid/SqlDB/SqlStringAdapterInfoDict.h b/cpp/src/IceGrid/SqlDB/SqlStringAdapterInfoDict.h index ab846be3d1f..e30395789b9 100644 --- a/cpp/src/IceGrid/SqlDB/SqlStringAdapterInfoDict.h +++ b/cpp/src/IceGrid/SqlDB/SqlStringAdapterInfoDict.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_STRING_ADAPTER_INFO_DICT_H -#define SQL_STRING_ADAPTER_INFO_DICT_H +#pragma once #include <Ice/CommunicatorF.h> #include <IceGrid/Admin.h> @@ -43,5 +42,3 @@ private: typedef IceUtil::Handle<SqlStringAdapterInfoDict> SqlStringAdapterInfoDictPtr; } - -#endif diff --git a/cpp/src/IceGrid/SqlDB/SqlStringApplicationInfoDict.h b/cpp/src/IceGrid/SqlDB/SqlStringApplicationInfoDict.h index c92d3eb807a..f7452ab9ec0 100644 --- a/cpp/src/IceGrid/SqlDB/SqlStringApplicationInfoDict.h +++ b/cpp/src/IceGrid/SqlDB/SqlStringApplicationInfoDict.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_STRING_APPLICATION_INFO_DICT_H -#define SQL_STRING_APPLICATION_INFO_DICT_H +#pragma once #include <Ice/CommunicatorF.h> #include <IceGrid/Admin.h> @@ -42,5 +41,3 @@ private: typedef IceUtil::Handle<SqlStringApplicationInfoDict> SqlStringApplicationInfoDictPtr; } - -#endif diff --git a/cpp/src/IceGrid/Topics.h b/cpp/src/IceGrid/Topics.h index 7399457d35e..2ee85df44bb 100644 --- a/cpp/src/IceGrid/Topics.h +++ b/cpp/src/IceGrid/Topics.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICEGRID_TOPICS_H -#define ICEGRID_TOPICS_H +#pragma once #include <IceUtil/Mutex.h> #include <IceStorm/IceStorm.h> @@ -161,5 +160,3 @@ private: typedef IceUtil::Handle<ObjectObserverTopic> ObjectObserverTopicPtr; }; - -#endif diff --git a/cpp/src/IceGrid/TraceLevels.h b/cpp/src/IceGrid/TraceLevels.h index a3f687b0ebf..127f378fcec 100644 --- a/cpp/src/IceGrid/TraceLevels.h +++ b/cpp/src/IceGrid/TraceLevels.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_TRACE_LEVELS_H -#define ICE_GRID_TRACE_LEVELS_H +#pragma once #include <IceUtil/Shared.h> #include <Ice/CommunicatorF.h> @@ -60,5 +59,3 @@ public: typedef IceUtil::Handle<TraceLevels> TraceLevelsPtr; } // End namespace IceGrid - -#endif diff --git a/cpp/src/IceGrid/Util.h b/cpp/src/IceGrid/Util.h index 9ba84619693..c15ec35e0c3 100755 --- a/cpp/src/IceGrid/Util.h +++ b/cpp/src/IceGrid/Util.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_UTIL_H -#define ICE_GRID_UTIL_H +#pragma once #include <IceGrid/Descriptor.h> #include <IceUtil/StringUtil.h> @@ -118,5 +117,3 @@ inline getMatchingKeys(const T& m, const std::string& expression) } }; - -#endif diff --git a/cpp/src/IceGrid/WaitQueue.h b/cpp/src/IceGrid/WaitQueue.h index 09691c9c04b..83345b2f171 100644 --- a/cpp/src/IceGrid/WaitQueue.h +++ b/cpp/src/IceGrid/WaitQueue.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_WAIT_QUEUE_H -#define ICE_GRID_WAIT_QUEUE_H +#pragma once #include <IceUtil/Thread.h> #include <IceUtil/Monitor.h> @@ -58,5 +57,3 @@ private: typedef IceUtil::Handle<WaitQueue> WaitQueuePtr; } - -#endif diff --git a/cpp/src/IceGrid/WellKnownObjectsManager.h b/cpp/src/IceGrid/WellKnownObjectsManager.h index 5ef741840b4..fd1661150fc 100644 --- a/cpp/src/IceGrid/WellKnownObjectsManager.h +++ b/cpp/src/IceGrid/WellKnownObjectsManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_GRID_WELL_KNOWN_OBJECTS_MANAGER_H -#define ICE_GRID_WELL_KNOWN_OBJECTS_MANAGER_H +#pragma once #include <IceGrid/Internal.h> @@ -47,5 +46,3 @@ private: typedef IceUtil::Handle<WellKnownObjectsManager> WellKnownObjectsManagerPtr; }; - -#endif diff --git a/cpp/src/IcePatch2/FileServerI.h b/cpp/src/IcePatch2/FileServerI.h index 5f32dcddafd..ba9190b2b88 100644 --- a/cpp/src/IcePatch2/FileServerI.h +++ b/cpp/src/IcePatch2/FileServerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_PATCH2_FILE_SERVER_I_H -#define ICE_PATCH2_FILE_SERVER_I_H +#pragma once #include <IcePatch2/Util.h> #include <IcePatch2/FileServer.h> @@ -38,5 +37,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/AcceptorI.h b/cpp/src/IceSSL/AcceptorI.h index 7a4fab4df00..44daa2f261f 100644 --- a/cpp/src/IceSSL/AcceptorI.h +++ b/cpp/src/IceSSL/AcceptorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_ACCEPTOR_I_H -#define ICE_SSL_ACCEPTOR_I_H +#pragma once #include <Ice/LoggerF.h> #include <Ice/TransceiverF.h> @@ -67,5 +66,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/ConnectorI.h b/cpp/src/IceSSL/ConnectorI.h index cfb4e1f92f4..00c8577b857 100644 --- a/cpp/src/IceSSL/ConnectorI.h +++ b/cpp/src/IceSSL/ConnectorI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_CONNECTOR_I_H -#define ICE_SSL_CONNECTOR_I_H +#pragma once #include <Ice/LoggerF.h> #include <Ice/TransceiverF.h> @@ -54,5 +53,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/EndpointI.h b/cpp/src/IceSSL/EndpointI.h index 9a219c386d0..a178ea0a0a9 100644 --- a/cpp/src/IceSSL/EndpointI.h +++ b/cpp/src/IceSSL/EndpointI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_ENDPOINT_I_H -#define ICE_SSL_ENDPOINT_I_H +#pragma once #include <Ice/EndpointI.h> #include <Ice/EndpointFactory.h> @@ -84,5 +83,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/Instance.h b/cpp/src/IceSSL/Instance.h index d332a251e3f..e94fcb0d274 100644 --- a/cpp/src/IceSSL/Instance.h +++ b/cpp/src/IceSSL/Instance.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_INSTANCE_H -#define ICE_SSL_INSTANCE_H +#pragma once #include <IceSSL/InstanceF.h> #include <IceSSL/UtilF.h> @@ -87,5 +86,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/InstanceF.h b/cpp/src/IceSSL/InstanceF.h index 0f731a0c174..3fd831308ad 100644 --- a/cpp/src/IceSSL/InstanceF.h +++ b/cpp/src/IceSSL/InstanceF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_INSTANCE_F_H -#define ICE_SSL_INSTANCE_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ IceUtil::Shared* upCast(IceSSL::Instance*); typedef IceInternal::Handle<Instance> InstancePtr; } - -#endif diff --git a/cpp/src/IceSSL/PluginI.h b/cpp/src/IceSSL/PluginI.h index 10488ad6226..9b54513d38d 100644 --- a/cpp/src/IceSSL/PluginI.h +++ b/cpp/src/IceSSL/PluginI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_PLUGIN_I_H -#define ICE_SSL_PLUGIN_I_H +#pragma once #include <IceSSL/Plugin.h> #include <IceSSL/InstanceF.h> @@ -43,5 +42,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/RFC2253.h b/cpp/src/IceSSL/RFC2253.h index c70fb157d9f..0e769c20bb2 100644 --- a/cpp/src/IceSSL/RFC2253.h +++ b/cpp/src/IceSSL/RFC2253.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_RFC_2253_H -#define ICE_SSL_RFC_2253_H +#pragma once #include <IceUtil/Config.h> #include <list> @@ -63,5 +62,3 @@ std::string unescape(const std::string&); } } - -#endif diff --git a/cpp/src/IceSSL/TransceiverI.h b/cpp/src/IceSSL/TransceiverI.h index dd94b787a7c..d932895736f 100644 --- a/cpp/src/IceSSL/TransceiverI.h +++ b/cpp/src/IceSSL/TransceiverI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_TRANSCEIVER_I_H -#define ICE_SSL_TRANSCEIVER_I_H +#pragma once #include <IceSSL/InstanceF.h> #include <IceSSL/Plugin.h> @@ -105,5 +104,3 @@ private: typedef IceUtil::Handle<TransceiverI> TransceiverIPtr; } - -#endif diff --git a/cpp/src/IceSSL/TrustManager.h b/cpp/src/IceSSL/TrustManager.h index 5db65c2e978..25cb1a4714a 100644 --- a/cpp/src/IceSSL/TrustManager.h +++ b/cpp/src/IceSSL/TrustManager.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_TRUST_MANAGER_H -#define ICE_SSL_TRUST_MANAGER_H +#pragma once #include <Ice/CommunicatorF.h> #include <IceSSL/TrustManagerF.h> @@ -47,5 +46,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceSSL/TrustManagerF.h b/cpp/src/IceSSL/TrustManagerF.h index e715c188ea8..43333664258 100644 --- a/cpp/src/IceSSL/TrustManagerF.h +++ b/cpp/src/IceSSL/TrustManagerF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_TRUST_MANAGER_F_H -#define ICE_SSL_TRUST_MANAGER_F_H +#pragma once #include <IceUtil/Shared.h> @@ -22,5 +21,3 @@ IceUtil::Shared* upCast(IceSSL::TrustManager*); typedef IceInternal::Handle<TrustManager> TrustManagerPtr; } - -#endif diff --git a/cpp/src/IceSSL/Util.h b/cpp/src/IceSSL/Util.h index 80f5625a63b..1e9f39dea91 100644 --- a/cpp/src/IceSSL/Util.h +++ b/cpp/src/IceSSL/Util.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_UTIL_H -#define ICE_SSL_UTIL_H +#pragma once #include <IceSSL/UtilF.h> #include <Ice/Network.h> @@ -58,5 +57,3 @@ bool checkPath(std::string&, const std::string&, bool); std::string getSslErrors(bool); } - -#endif diff --git a/cpp/src/IceSSL/UtilF.h b/cpp/src/IceSSL/UtilF.h index ee49435777d..acb311f7595 100644 --- a/cpp/src/IceSSL/UtilF.h +++ b/cpp/src/IceSSL/UtilF.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SSL_UTIL_F_H -#define ICE_SSL_UTIL_F_H +#pragma once #include <IceUtil/Shared.h> @@ -26,5 +25,3 @@ typedef IceInternal::Handle<DHParams> DHParamsPtr; } #endif - -#endif diff --git a/cpp/src/IceStorm/DB.h b/cpp/src/IceStorm/DB.h index b7848e075d2..78b5b605280 100644 --- a/cpp/src/IceStorm/DB.h +++ b/cpp/src/IceStorm/DB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef DATABASE_CACHE_H -#define DATABASE_CACHE_H +#pragma once #include <Ice/Plugin.h> #include <IceDB/IceDB.h> @@ -57,6 +56,3 @@ public: typedef IceUtil::Handle<DatabasePlugin> DatabasePluginPtr; } - - -#endif diff --git a/cpp/src/IceStorm/FreezeDB/FreezeDB.h b/cpp/src/IceStorm/FreezeDB/FreezeDB.h index 9bc2393035c..17744ec5e1b 100644 --- a/cpp/src/IceStorm/FreezeDB/FreezeDB.h +++ b/cpp/src/IceStorm/FreezeDB/FreezeDB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef FREEZE_DATABASE_CACHE_H -#define FREEZE_DATABASE_CACHE_H +#pragma once #include <IceDB/FreezeTypes.h> @@ -45,5 +44,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceStorm/Instance.h b/cpp/src/IceStorm/Instance.h index fbc3bbffae6..0f6b0540258 100644 --- a/cpp/src/IceStorm/Instance.h +++ b/cpp/src/IceStorm/Instance.h @@ -7,9 +7,7 @@ // // ********************************************************************** -#ifndef INSTANCE_H -#define INSTANCE_H - +#pragma once #include <Ice/CommunicatorF.h> #include <Ice/ObjectAdapterF.h> @@ -104,5 +102,3 @@ private: typedef IceUtil::Handle<Instance> InstancePtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/NodeI.h b/cpp/src/IceStorm/NodeI.h index f32de3a5d6a..e8387da2961 100644 --- a/cpp/src/IceStorm/NodeI.h +++ b/cpp/src/IceStorm/NodeI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ELECTION_I_H -#define ELECTION_I_H +#pragma once #include <IceUtil/IceUtil.h> #include <Ice/Ice.h> @@ -198,5 +197,3 @@ private: }; } - -#endif // ELECTION_I_H diff --git a/cpp/src/IceStorm/Observers.h b/cpp/src/IceStorm/Observers.h index 5d328420701..d7c51f9020f 100644 --- a/cpp/src/IceStorm/Observers.h +++ b/cpp/src/IceStorm/Observers.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef OBSERVERS_H -#define OBSERVERS_H +#pragma once #include <Ice/Ice.h> #include <IceUtil/IceUtil.h> @@ -82,5 +81,3 @@ private: typedef IceUtil::Handle<Observers> ObserversPtr; } - -#endif // OBSERVERS_H diff --git a/cpp/src/IceStorm/Parser.h b/cpp/src/IceStorm/Parser.h index aba6bd522fc..2649be8a6db 100644 --- a/cpp/src/IceStorm/Parser.h +++ b/cpp/src/IceStorm/Parser.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_STORM_PARSER_H -#define ICE_STORM_PARSER_H +#pragma once #include <IceUtil/Handle.h> #include <IceStorm/IceStorm.h> @@ -105,5 +104,3 @@ private: extern Parser* parser; // The current parser for bison/flex } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/Replica.h b/cpp/src/IceStorm/Replica.h index 2c6eb6f3e4b..60600c778d8 100644 --- a/cpp/src/IceStorm/Replica.h +++ b/cpp/src/IceStorm/Replica.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef REPLICA_H -#define REPLICA_H +#pragma once #include <Ice/Ice.h> #include <IceStorm/Election.h> @@ -43,5 +42,3 @@ public: typedef IceUtil::Handle<Replica> ReplicaPtr; } - -#endif // RELICA_H diff --git a/cpp/src/IceStorm/Service.h b/cpp/src/IceStorm/Service.h index 9b9753e5db0..f514f1b0040 100644 --- a/cpp/src/IceStorm/Service.h +++ b/cpp/src/IceStorm/Service.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICESTORM_SERVICE_H -#define ICESTORM_SERVICE_H +#pragma once #include <IceBox/IceBox.h> #include <IceStorm/IceStorm.h> @@ -44,5 +43,3 @@ public: }; }; - -#endif diff --git a/cpp/src/IceStorm/SqlDB/SqlDB.h b/cpp/src/IceStorm/SqlDB/SqlDB.h index bcba51d7df6..5a7b5fa8fe8 100644 --- a/cpp/src/IceStorm/SqlDB/SqlDB.h +++ b/cpp/src/IceStorm/SqlDB/SqlDB.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_DATABASE_CACHE_H -#define SQL_DATABASE_CACHE_H +#pragma once #include <IceStorm/DB.h> @@ -56,5 +55,3 @@ private: }; } - -#endif diff --git a/cpp/src/IceStorm/SqlDB/SqlLLU.h b/cpp/src/IceStorm/SqlDB/SqlLLU.h index b2f70652f55..5fbdd87f067 100644 --- a/cpp/src/IceStorm/SqlDB/SqlLLU.h +++ b/cpp/src/IceStorm/SqlDB/SqlLLU.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_LLU_H -#define SQL_LLU_H +#pragma once #include <IceDB/SqlTypes.h> @@ -34,5 +33,3 @@ private: typedef IceUtil::Handle<SqlLLU> SqlLLUPtr; } - -#endif diff --git a/cpp/src/IceStorm/SqlDB/SqlSubscriberMap.h b/cpp/src/IceStorm/SqlDB/SqlSubscriberMap.h index 397e88bce12..6509941b499 100644 --- a/cpp/src/IceStorm/SqlDB/SqlSubscriberMap.h +++ b/cpp/src/IceStorm/SqlDB/SqlSubscriberMap.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SQL_SUBSCRIBER_MAP_H -#define SQL_SUBSCRIBER_MAP_H +#pragma once #include <Ice/CommunicatorF.h> #include <IceStorm/SubscriberRecord.h> @@ -64,5 +63,3 @@ private: typedef IceUtil::Handle<SqlSubscriberMap> SqlSubscriberMapPtr; } - -#endif diff --git a/cpp/src/IceStorm/Subscriber.h b/cpp/src/IceStorm/Subscriber.h index 906fec3cf4e..75b7e0ea056 100644 --- a/cpp/src/IceStorm/Subscriber.h +++ b/cpp/src/IceStorm/Subscriber.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SUBSCRIBER_H -#define SUBSCRIBER_H +#pragma once #include <IceStorm/IceStormInternal.h> #include <IceStorm/SubscriberRecord.h> @@ -93,5 +92,3 @@ bool operator!=(const IceStorm::Subscriber&, const IceStorm::Subscriber&); bool operator<(const IceStorm::Subscriber&, const IceStorm::Subscriber&); } - -#endif // SUBSCRIBER_H diff --git a/cpp/src/IceStorm/TopicI.h b/cpp/src/IceStorm/TopicI.h index 9d7f497865d..11c4d4c6e2f 100644 --- a/cpp/src/IceStorm/TopicI.h +++ b/cpp/src/IceStorm/TopicI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef TOPIC_I_H -#define TOPIC_I_H +#pragma once #include <IceStorm/IceStormInternal.h> #include <IceStorm/Election.h> @@ -104,5 +103,3 @@ private: typedef IceUtil::Handle<TopicImpl> TopicImplPtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/TopicManagerI.h b/cpp/src/IceStorm/TopicManagerI.h index 8a313a67868..6c560fd3d0a 100644 --- a/cpp/src/IceStorm/TopicManagerI.h +++ b/cpp/src/IceStorm/TopicManagerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef TOPIC_MANAGER_I_H -#define TOPIC_MANAGER_I_H +#pragma once #include <IceStorm/IceStorm.h> @@ -91,5 +90,3 @@ private: typedef IceUtil::Handle<TopicManagerImpl> TopicManagerImplPtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/TraceLevels.h b/cpp/src/IceStorm/TraceLevels.h index bd860b4256f..b232bb9505a 100644 --- a/cpp/src/IceStorm/TraceLevels.h +++ b/cpp/src/IceStorm/TraceLevels.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_STORM_TRACE_LEVELS_H -#define ICE_STORM_TRACE_LEVELS_H +#pragma once #include <IceUtil/Shared.h> #include <IceUtil/Handle.h> @@ -46,5 +45,3 @@ public: typedef IceUtil::Handle<TraceLevels> TraceLevelsPtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/TransientTopicI.h b/cpp/src/IceStorm/TransientTopicI.h index f051ba3e5e0..ac19a9493f0 100644 --- a/cpp/src/IceStorm/TransientTopicI.h +++ b/cpp/src/IceStorm/TransientTopicI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef TRANSIENT_TOPIC_I_H -#define TRANSIENT_TOPIC_I_H +#pragma once #include <IceStorm/IceStormInternal.h> @@ -76,5 +75,3 @@ private: typedef IceUtil::Handle<TransientTopicImpl> TransientTopicImplPtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/TransientTopicManagerI.h b/cpp/src/IceStorm/TransientTopicManagerI.h index 9edb2ec3c77..a00988a7a81 100644 --- a/cpp/src/IceStorm/TransientTopicManagerI.h +++ b/cpp/src/IceStorm/TransientTopicManagerI.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef TRANSIENT_TOPIC_MANAGER_I_H -#define TRANSIENT_TOPIC_MANAGER_I_H +#pragma once #include <IceStorm/IceStormInternal.h> @@ -55,5 +54,3 @@ private: typedef IceUtil::Handle<TransientTopicManagerImpl> TransientTopicManagerImplPtr; } // End namespace IceStorm - -#endif diff --git a/cpp/src/IceStorm/Util.h b/cpp/src/IceStorm/Util.h index 128133e3bac..cb73d662280 100644 --- a/cpp/src/IceStorm/Util.h +++ b/cpp/src/IceStorm/Util.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef UTIL_H -#define UTIL_H +#pragma once #include <string> @@ -21,4 +20,3 @@ std::string describeEndpoints(const Ice::ObjectPrx&); } -#endif diff --git a/cpp/src/IceUtil/ConvertUTF.h b/cpp/src/IceUtil/ConvertUTF.h index 46155f9fa22..ae4e3d1c989 100644 --- a/cpp/src/IceUtil/ConvertUTF.h +++ b/cpp/src/IceUtil/ConvertUTF.h @@ -29,8 +29,7 @@ // // ********************************************************************** -#ifndef ICE_UTIL_CONVERT_UTF_H -#define ICE_UTIL_CONVERT_UTF_H +#pragma once #include <IceUtil/Unicode.h> @@ -141,4 +140,3 @@ ConversionResult ConvertUTF32toUTF8( /* --------------------------------------------------------------------- */ } -#endif diff --git a/cpp/src/Slice/GrammarUtil.h b/cpp/src/Slice/GrammarUtil.h index 378901df888..53340ba8934 100644 --- a/cpp/src/Slice/GrammarUtil.h +++ b/cpp/src/Slice/GrammarUtil.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SLICE_GRAMMAR_UTIL_H -#define SLICE_GRAMMAR_UTIL_H +#pragma once #include <Slice/Parser.h> @@ -200,5 +199,3 @@ int slice_parse(); // yyoverflow. // #define yyoverflow(a, b, c, d, e, f) yyerror(a) - -#endif diff --git a/cpp/src/Slice/MD5.h b/cpp/src/Slice/MD5.h index ac9c02e2af0..e9bad070237 100644 --- a/cpp/src/Slice/MD5.h +++ b/cpp/src/Slice/MD5.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef SLICE_MD5_H -#define SLICE_MD5_H +#pragma once #include <IceUtil/Config.h> @@ -40,5 +39,3 @@ private: }; } - -#endif diff --git a/cpp/src/Slice/MD5I.h b/cpp/src/Slice/MD5I.h index 66588283e83..2ab51829250 100644 --- a/cpp/src/Slice/MD5I.h +++ b/cpp/src/Slice/MD5I.h @@ -47,8 +47,7 @@ 1999-05-03 lpd Original version. */ -#ifndef md5_INCLUDED -# define md5_INCLUDED +#pragma once /* * This package supports both compile-time and run-time determination of CPU @@ -87,5 +86,3 @@ void md5_finish(md5_state_t *pms, md5_byte_t digest[16]); #ifdef __cplusplus } /* end extern "C" */ #endif - -#endif /* md5_INCLUDED */ diff --git a/cpp/src/iceserviceinstall/ServiceInstaller.h b/cpp/src/iceserviceinstall/ServiceInstaller.h index e867c9cb31f..3c852931e9e 100644 --- a/cpp/src/iceserviceinstall/ServiceInstaller.h +++ b/cpp/src/iceserviceinstall/ServiceInstaller.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef ICE_SERVICE_INSTALLER_H -#define ICE_SERVICE_INSTALLER_H +#pragma once #include <Ice/Ice.h> #include <AccCtrl.h> @@ -76,5 +75,3 @@ private: bool _debug; }; - -#endif diff --git a/cpp/src/slice2confluence/ConfluenceOutput.h b/cpp/src/slice2confluence/ConfluenceOutput.h index 90d02809368..5caa7521e50 100644 --- a/cpp/src/slice2confluence/ConfluenceOutput.h +++ b/cpp/src/slice2confluence/ConfluenceOutput.h @@ -1,5 +1,13 @@ -#ifndef CONFLUENCE_OUTPUT -#define CONFLUENCE_OUTPUT +// ********************************************************************** +// +// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#pragma once #include <IceUtil/OutputUtil.h> #include <list> @@ -188,5 +196,3 @@ operator<<(ConfluenceOutput& o, const EndEscapes&) ConfluenceOutput& operator<<(ConfluenceOutput&, std::ios_base& (*)(std::ios_base&)); } - -#endif diff --git a/cpp/src/slice2confluence/Gen.h b/cpp/src/slice2confluence/Gen.h index 65469d5dc05..2b563fe04b4 100644 --- a/cpp/src/slice2confluence/Gen.h +++ b/cpp/src/slice2confluence/Gen.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GEN_H -#define GEN_H +#pragma once #include <Slice/Parser.h> #include <IceUtil/OutputUtil.h> @@ -292,5 +291,3 @@ private: }; } - -#endif diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index f9cf0ecfd32..0d662a1c1f5 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -184,12 +184,12 @@ Slice::Gen::Gen(const string& base, const string& headerExtension, const string& Slice::Gen::~Gen() { - H << "\n\n#endif\n"; + H << '\n'; C << '\n'; if(_impl) { - implH << "\n\n#endif\n"; + implH << '\n'; implC << '\n'; } } @@ -250,15 +250,7 @@ Slice::Gen::generate(const UnitPtr& p) } FileTracker::instance()->addFile(fileImplC); - string s = fileImplH; - if(_include.size()) - { - s = _include + '/' + s; - } - transform(s.begin(), s.end(), s.begin(), ToIfdef()); - implH << "#ifndef __" << s << "__"; - implH << "\n#define __" << s << "__"; - implH << '\n'; + implH << "#pragma once\n"; } string fileH = _base + "." + _headerExtension; @@ -292,16 +284,7 @@ Slice::Gen::generate(const UnitPtr& p) printHeader(C); printGeneratedHeader(C, _base + ".ice"); - - string s = fileH; - if(_include.size()) - { - s = _include + '/' + s; - } - transform(s.begin(), s.end(), s.begin(), ToIfdef()); - H << "\n#ifndef __" << s << "__"; - H << "\n#define __" << s << "__"; - H << '\n'; + H << "#pragma once\n"; validateMetaData(p); diff --git a/cpp/src/slice2cpp/Gen.h b/cpp/src/slice2cpp/Gen.h index 6e217075c10..f30a220b445 100644 --- a/cpp/src/slice2cpp/Gen.h +++ b/cpp/src/slice2cpp/Gen.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GEN_H -#define GEN_H +#pragma once #include <Slice/Parser.h> #include <IceUtil/OutputUtil.h> @@ -470,5 +469,3 @@ private: }; } - -#endif diff --git a/cpp/src/slice2cs/Gen.h b/cpp/src/slice2cs/Gen.h index 77e0c3ba90c..bec13760eaf 100644 --- a/cpp/src/slice2cs/Gen.h +++ b/cpp/src/slice2cs/Gen.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GEN_H -#define GEN_H +#pragma once #include <Slice/CsUtil.h> @@ -308,5 +307,3 @@ private: }; } - -#endif diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 34e544c0139..1b9bff67efb 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -1449,11 +1449,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co } } - string s = fileH; - transform(s.begin(), s.end(), s.begin(), ToIfdef()); - H << "\n#ifndef __" << s << "__"; - H << "\n#define __" << s << "__"; - H << '\n'; + H << "#pragma once\n"; if(dicts.size() > 0) { @@ -1502,7 +1498,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co } } - H << "\n\n#endif\n"; + H << "\n\n"; CPP << '\n'; H.close(); diff --git a/cpp/src/slice2html/Gen.h b/cpp/src/slice2html/Gen.h index e0ecdc58651..1d526ccd15c 100644 --- a/cpp/src/slice2html/Gen.h +++ b/cpp/src/slice2html/Gen.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GEN_H -#define GEN_H +#pragma once #include <Slice/Parser.h> #include <IceUtil/OutputUtil.h> @@ -267,5 +266,3 @@ private: }; } - -#endif diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index 36315c11817..6b44b449a36 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -7,8 +7,7 @@ // // ********************************************************************** -#ifndef GEN_H -#define GEN_H +#pragma once #include <Slice/Parser.h> #include <Slice/JavaUtil.h> @@ -318,5 +317,3 @@ private: }; } - -#endif |