From: Ovidiu Mircescu Date: Wed, 3 Feb 2021 14:35:50 +0000 (+0100) Subject: Missing include protections. X-Git-Tag: V9_7_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=921fb4f9491b1c138bdf552ee9536b1254ade446;p=modules%2Fkernel.git Missing include protections. --- diff --git a/src/KernelHelpers/KernelServices.hxx b/src/KernelHelpers/KernelServices.hxx index 54bac046e..fc82cd29e 100644 --- a/src/KernelHelpers/KernelServices.hxx +++ b/src/KernelHelpers/KernelServices.hxx @@ -16,8 +16,10 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // - +#ifndef __KERNELSERVICES_HXX__ +#define __KERNELSERVICES_HXX__ #include void RegisterCompoInternal(const std::string& compoName, const std::string& compoIOR); std::string RetrieveCompoInternal(const std::string& compoName); +#endif diff --git a/src/KernelHelpers/SALOME_KernelServices.hxx b/src/KernelHelpers/SALOME_KernelServices.hxx index d232b1483..0568d5567 100644 --- a/src/KernelHelpers/SALOME_KernelServices.hxx +++ b/src/KernelHelpers/SALOME_KernelServices.hxx @@ -18,7 +18,8 @@ // // Author: Guillaume Boulant (EDF/R&D) - +#ifndef __SALOME_KERNEL_SERVICES_HXX__ +#define __SALOME_KERNEL_SERVICES_HXX__ #pragma once #include "KernelHelpers.hxx" @@ -101,3 +102,4 @@ namespace KERNEL { #include "Utils_CorbaException.hxx" // Tip: CORBA exceptions can be used with LOG (or more generally in streams) // Ex: LOG("An exception occurs: "< std::string GetModuleCatalogInstance(const std::string& listOfCatalogsGrouped); +#endif diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx index fbd260b29..aab362178 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx @@ -26,6 +26,8 @@ // Module : SALOME // $Header$ // +#ifndef __SALOME_MODULECATALOG_IMPL_HXX__ +#define __SALOME_MODULECATALOG_IMPL_HXX__ #pragma once #include "SALOME_ModuleCatalog.hxx" @@ -145,3 +147,4 @@ private: CORBA::ORB_ptr _orb; Private* myPrivate; }; +#endif //__SALOME_MODULECATALOG_IMPL_HXX__ diff --git a/src/SALOMEDS/KernelDS.hxx b/src/SALOMEDS/KernelDS.hxx index f56aceb43..c60e72ee7 100644 --- a/src/SALOMEDS/KernelDS.hxx +++ b/src/SALOMEDS/KernelDS.hxx @@ -16,7 +16,9 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // - +#ifndef __KERNEL_DS_HXX__ +#define __KERNEL_DS_HXX__ #include std::string GetSessionInstance(); +#endif