Commit 123d8782 authored by Harriet Brown's avatar Harriet Brown
Browse files

Repalce header guards in API with pragma once

This commit replaces all header guards in API with #pragma once
parent f6def76b
......@@ -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
......@@ -59,4 +58,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>
......@@ -59,4 +58,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>
......@@ -522,4 +521,3 @@ using Algorithm_sptr = boost::shared_ptr<Algorithm>;
(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_ALGORITHMFACTORY_H_
#define MANTID_API_ALGORITHMFACTORY_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -171,4 +170,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
}
} // 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>
......@@ -53,4 +52,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"
......@@ -41,4 +40,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
......@@ -152,4 +151,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
......@@ -101,4 +100,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
}
} // 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
......@@ -76,4 +75,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
......@@ -231,4 +230,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
}
} // 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"
......@@ -137,4 +136,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
......@@ -53,4 +52,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
}
} // 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"
......@@ -105,4 +104,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"
......@@ -39,4 +38,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"
......@@ -101,4 +100,3 @@ DLLExport boost::optional<std::string> checkForOptionalInstrumentDefault(
} // 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"
......@@ -547,4 +546,3 @@ using BoxController_const_sptr = boost::shared_ptr<const BoxController>;
} // 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
......@@ -76,4 +75,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
}
} // namespace Mantid
#endif /*MANTID_API_CATALOGFACTORYIMPL_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_ICAT_CATALOGMANAGERIMPL_H_
#define MANTID_ICAT_CATALOGMANAGERIMPL_H_
#pragma once
#include "MantidAPI/ICatalog.h"
#include "MantidKernel/SingletonHolder.h"
......@@ -63,4 +62,3 @@ EXTERN_MANTID_API template class MANTID_API_DLL
Kernel::SingletonHolder<Mantid::API::CatalogManagerImpl>;
}
} // namespace Mantid
#endif /* MANTID_ICAT_CATALOGMANAGERIMPL_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