Unverified Commit 16a65d2f authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony Committed by GitHub
Browse files

Merge pull request #28233 from mantidproject/28200_replace_API_header_guards_with_pragma_once

Replace header guards in API with pragma once
parents 8f17d41e c7347d33
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ADSVALIDATOR_H_
#define MANTID_API_ADSVALIDATOR_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -58,5 +57,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /* MANTID_API_ADSVALIDATOR_H_ */
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGOTIMEREGISTER_H_
#define MANTID_API_ALGOTIMEREGISTER_H_
#pragma once
#include <mutex>
#include <thread>
......@@ -58,5 +57,3 @@ private:
} // namespace Instrumentation
} // namespace Mantid
#endif /* MANTID_API_ALGOTIMEREGISTER_H_ */
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHM_H_
#define MANTID_API_ALGORITHM_H_
#pragma once
#include <atomic>
......@@ -521,5 +520,3 @@ using Algorithm_sptr = boost::shared_ptr<Algorithm>;
Mantid::Kernel::RegistrationHelper register_alg_##classname(( \
(Mantid::API::AlgorithmFactory::Instance().subscribe<classname>()), 0)); \
}
#endif /*MANTID_API_ALGORITHM_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHM_TCC_
#define MANTID_API_ALGORITHM_TCC_
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/IndexProperty.h"
......@@ -162,5 +161,3 @@ Algorithm::getWorkspaceAndIndices(const std::string &name) const {
}
} // namespace API
} // namespace Mantid
#endif /*MANTID_API_ALGORITHM_TCC_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMFACTORY_H_
#define MANTID_API_ALGORITHMFACTORY_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -170,5 +169,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Mantid::Kernel::SingletonHolder<Mantid::API::AlgorithmFactoryImpl>;
}
} // namespace Mantid
#endif /*MANTID_API_ALGORITHMFACTORY_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ALGORITHMFACTORYOBSERVER_H_
#define MANTID_KERNEL_ALGORITHMFACTORYOBSERVER_H_
#pragma once
#include "MantidAPI/AlgorithmFactory.h"
#include <Poco/NObserver.h>
......@@ -52,5 +51,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /*MANTID_KERNEL_ALGORITHMFACTORYOBSERVER_H_*/
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMHASPROPERTY_H_
#define MANTID_API_ALGORITHMHASPROPERTY_H_
#pragma once
#include "MantidAPI/DllConfig.h"
#include "MantidKernel/TypedValidator.h"
......@@ -40,5 +39,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /* MANTID_API_ALGORITHMHASPROPERTY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMHISTORY_H_
#define MANTID_API_ALGORITHMHISTORY_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -151,5 +150,3 @@ MANTID_API_DLL std::ostream &operator<<(std::ostream &,
} // namespace API
} // namespace Mantid
#endif /*MANTID_API_ALGORITHMHISTORY_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMMANAGER_H_
#define MANTID_API_ALGORITHMMANAGER_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -100,5 +99,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Mantid::Kernel::SingletonHolder<Mantid::API::AlgorithmManagerImpl>;
}
} // namespace Mantid
#endif /* MANTID_API_ALGORITHMMANAGER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMOBSERVER_H_
#define MANTID_API_ALGORITHMOBSERVER_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -75,5 +74,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /*MANTID_API_ALGORITHMOBSERVER_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMPROPERTY_H_
#define MANTID_API_ALGORITHMPROPERTY_H_
#pragma once
#include "MantidAPI/DllConfig.h"
#include "MantidKernel/NullValidator.h"
......@@ -85,5 +84,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /* MANTID_API_ALGORITHMPROPERTY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ALGORITHMPROXY_H_
#define MANTID_API_ALGORITHMPROXY_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -198,5 +197,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /*MANTID_API_ALGORITHMPROXY_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ANALYSISDATASERVICE_H_
#define MANTID_KERNEL_ANALYSISDATASERVICE_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -230,5 +229,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Mantid::Kernel::SingletonHolder<Mantid::API::AnalysisDataServiceImpl>;
}
} // namespace Mantid
#endif /*MANTID_KERNEL_ANALYSISDATASERVICE_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ANALYSISDATASERVICEOBSERVER_H_
#define MANTID_KERNEL_ANALYSISDATASERVICEOBSERVER_H_
#pragma once
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/DllConfig.h"
......@@ -136,5 +135,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /*MANTID_KERNEL_ANALYSISDATASERVICEOBSERVER_H_*/
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_ARCHIVESEARCHFACTORY_H_
#define MANTID_API_ARCHIVESEARCHFACTORY_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -52,5 +51,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Mantid::Kernel::SingletonHolder<Mantid::API::ArchiveSearchFactoryImpl>;
}
} // namespace Mantid
#endif // MANTID_API_ARCHIVESEARCHFACTORY_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_AXIS_H_
#define MANTID_API_AXIS_H_
#pragma once
#include "MantidAPI/DllConfig.h"
#include "MantidGeometry/IDTypes.h"
......@@ -104,5 +103,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /*MANTID_API_AXIS_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_BINEDGEAXIS_H_
#define MANTID_API_BINEDGEAXIS_H_
#pragma once
#include "MantidAPI/NumericAxis.h"
......@@ -38,5 +37,3 @@ private:
} // namespace API
} // namespace Mantid
#endif /* MANTID_API_BINEDGEAXIS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_BOOSTOPTIONALTOALGORITHMPROPERTY_H_
#define MANTID_API_BOOSTOPTIONALTOALGORITHMPROPERTY_H_
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/DllConfig.h"
......@@ -100,5 +99,3 @@ DLLExport boost::optional<std::string> checkForOptionalInstrumentDefault(
Mantid::Geometry::Instrument_const_sptr instrument, std::string idf_name);
} // namespace API
} // namespace Mantid
#endif // MANTID_API_BOOSTOPTIONALTOALGORITHMPROPERTY_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef BOXCONTROLLER_H_
#define BOXCONTROLLER_H_
#pragma once
#include "MantidAPI/IBoxControllerIO.h"
#include "MantidKernel/DiskBuffer.h"
......@@ -546,5 +545,3 @@ using BoxController_const_sptr = boost::shared_ptr<const BoxController>;
} // namespace API
} // namespace Mantid
#endif /* SPLITCONTROLLER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_CATALOGFACTORYIMPL_H_
#define MANTID_API_CATALOGFACTORYIMPL_H_
#pragma once
/* Used to register Catalog classes into the factory. creates a global object in
*an
......@@ -75,5 +74,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Mantid::Kernel::SingletonHolder<Mantid::API::CatalogFactoryImpl>;
}
} // namespace Mantid
#endif /*MANTID_API_CATALOGFACTORYIMPL_H_*/
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