Commit 2b8cb0bd authored by Eric Cano's avatar Eric Cano
Browse files

Replaced #ifdef based multiple include guards by #pragma once.

Fixed h/rfcntl.h which missed multiple inclusion guards entirely.
parent e25a0df9
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_OBJECTCATALOG_HPP
#define CASTOR_OBJECTCATALOG_HPP 1
#pragma once
// Include Files
#include <map>
......@@ -64,4 +63,3 @@ namespace castor {
} // end of namespace castor
#endif // CASTOR_OBJECTCATALOG_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_OBJECTSET_HPP
#define CASTOR_OBJECTSET_HPP 1
#pragma once
// Include Files
#include <map>
......@@ -64,4 +63,3 @@ namespace castor {
} // end of namespace castor
#endif // CASTOR_OBJECTSET_HPP
......@@ -22,8 +22,7 @@
* @author Castor dev team
*****************************************************************************/
#ifndef CASTOR_PORTNUMBERS
#define CASTOR_PORTNUMBERS
#pragma once
namespace castor {
......@@ -69,4 +68,3 @@ namespace castor {
} // namespace castor
#endif // CASTOR_PORTNUMBERS
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_SERVICES_HPP
#define CASTOR_SERVICES_HPP 1
#pragma once
//Include Files
#include <vector>
......@@ -225,4 +224,3 @@ namespace castor {
} // end of namespace castor
#endif // CASTOR_SERVICES_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_SVCFACTORY_HPP
#define CASTOR_SVCFACTORY_HPP 1
#pragma once
// Include Files
#include "ISvcFactory.hpp"
......@@ -78,4 +77,3 @@ inline unsigned int castor::SvcFactory<Service>::id() const {
return Service::ID();
}
#endif // CASTOR_SVCFACTORY_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_SYSTEM_HPP
#define CASTOR_SYSTEM_HPP 1
#pragma once
// Include Files
#include <string>
......@@ -72,4 +71,3 @@ namespace castor {
} // end of namespace castor
#endif // CASTOR_SYSTEM_HPP
......@@ -23,8 +23,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_VECTORADDRESS_HPP
#define CASTOR_VECTORADDRESS_HPP
#pragma once
// Include Files
#include "castor/IAddress.hpp"
......@@ -205,4 +204,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_VECTORADDRESS_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_BWUSER_HPP
#define CASTOR_BWLIST_BWUSER_HPP
#pragma once
// Include Files
#include "castor/IObject.hpp"
......@@ -185,4 +184,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_BWUSER_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_CHANGEPRIVILEGE_HPP
#define CASTOR_BWLIST_CHANGEPRIVILEGE_HPP
#pragma once
// Include Files
#include "castor/stager/Request.hpp"
......@@ -219,4 +218,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_CHANGEPRIVILEGE_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_LISTPRIVILEGES_HPP
#define CASTOR_BWLIST_LISTPRIVILEGES_HPP
#pragma once
// Include Files
#include "castor/stager/Request.hpp"
......@@ -187,4 +186,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_LISTPRIVILEGES_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_LISTPRIVILEGESRESPONSE_HPP
#define CASTOR_BWLIST_LISTPRIVILEGESRESPONSE_HPP
#pragma once
// Include Files
#include "castor/rh/Response.hpp"
......@@ -158,4 +157,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_LISTPRIVILEGESRESPONSE_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_PRIVILEGE_HPP
#define CASTOR_BWLIST_PRIVILEGE_HPP
#pragma once
// Include Files
#include "castor/IObject.hpp"
......@@ -248,4 +247,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_PRIVILEGE_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef CASTOR_BWLIST_REQUESTTYPE_HPP
#define CASTOR_BWLIST_REQUESTTYPE_HPP
#pragma once
// Include Files
#include "castor/IObject.hpp"
......@@ -164,4 +163,3 @@ namespace castor {
} /* end of namespace castor */
#endif // CASTOR_BWLIST_REQUESTTYPE_HPP
......@@ -24,8 +24,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CLIENTS_BASECLIENT_HPP
#define CLIENTS_BASECLIENT_HPP 1
#pragma once
// Include Files
#include <unistd.h>
......@@ -299,4 +298,3 @@ namespace castor {
} // end of namespace castor
#endif // CLIENTS_BASECLIENT_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef RH_BASICRESPONSEHANDLER_HPP
#define RH_BASICRESPONSEHANDLER_HPP 1
#pragma once
// Include Files
#include "castor/exception/Exception.hpp"
......@@ -71,4 +70,3 @@ namespace castor {
} // end of namespace castor
#endif // RH_BASICRESPONSEHANDLER_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CLIENT_IRESPONSEHANDLER_HPP
#define CLIENT_IRESPONSEHANDLER_HPP 1
#pragma once
// Include Files
#include "castor/exception/Exception.hpp"
......@@ -67,4 +66,3 @@ namespace castor {
} // end of namespace castor
#endif // CLIENT_IRESPONSEHANDLER_HPP
......@@ -23,8 +23,7 @@
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CLIENT_VECTORRESPONSEHANDLER_HPP
#define CLIENT_VECTORRESPONSEHANDLER_HPP 1
#pragma once
// Include Files
#include "castor/exception/Exception.hpp"
......@@ -69,4 +68,3 @@ namespace castor {
} // end of namespace castor
#endif // CLIENT_VECTORRESPONSEHANDLER_HPP
......@@ -22,8 +22,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#ifndef H_CASTOR_COMMON_CASTORCONFIGURATION_HPP
#define H_CASTOR_COMMON_CASTORCONFIGURATION_HPP 1
#pragma once
// Include Files
#include <string>
......@@ -152,4 +151,3 @@ namespace castor {
} // namespace common
} // namespace castor
#endif /* H_CASTOR_COMMON_CASTORCONFIGURATION_HPP */
......@@ -23,8 +23,7 @@
* @author Giuseppe Lo Presti
*****************************************************************************/
#ifndef DB_DBBASEOBJ_HPP
#define DB_DBBASEOBJ_HPP 1
#pragma once
// Include files
#include "castor/BaseObject.hpp"
......@@ -128,4 +127,3 @@ namespace castor {
} // end of namespace castor
#endif // DB_DBBASEOBJ_HPP
......@@ -23,8 +23,7 @@
* @author Giuseppe Lo Presti
*****************************************************************************/
#ifndef CASTOR_DBCNVSVC_HPP
#define CASTOR_DBCNVSVC_HPP 1
#pragma once
// Include Files
#include "castor/db/IDbStatement.hpp"
......@@ -112,4 +111,3 @@ namespace castor {
} // end of namespace castor
#endif // CASTOR_DBCNVSVC_HPP
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment