Commit 2ce11f87 authored by Harriet Brown's avatar Harriet Brown
Browse files

Replace header guards in Geometry with pragma once

This PR replaces all header guards in Geometry with #pragma once
parent 5a5a4730
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_COMPONENTPARSER_H_
#define MANTID_GEOMETRY_COMPONENTPARSER_H_
#pragma once
#include "MantidGeometry/Instrument/Component.h"
#include "MantidKernel/System.h"
......@@ -66,5 +65,3 @@ private:
};
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_COMPONENTPARSER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_ANGLEUNITS_H_
#define MANTID_GEOMETRY_ANGLEUNITS_H_
#pragma once
#include "MantidGeometry/DllConfig.h"
#include "MantidKernel/PhysicalConstants.h"
......@@ -27,5 +26,3 @@ constexpr double rad2deg = 180. / M_PI;
enum AngleUnits { angDegrees, angRadians };
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_ANGLEUNITS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_BASICHKLFILTERS_H_
#define MANTID_GEOMETRY_BASICHKLFILTERS_H_
#pragma once
#include "MantidGeometry/Crystal/HKLFilter.h"
#include "MantidGeometry/Crystal/ReflectionCondition.h"
......@@ -156,5 +155,3 @@ protected:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_BASICHKLFILTERS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_BRAGGSCATTERER_H_
#define MANTID_GEOMETRY_BRAGGSCATTERER_H_
#pragma once
#include "MantidGeometry/DllConfig.h"
#include "MantidKernel/V3D.h"
......@@ -87,5 +86,3 @@ private:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_BRAGGSCATTERER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_BRAGGSCATTERERFACTORY_H_
#define MANTID_GEOMETRY_BRAGGSCATTERERFACTORY_H_
#pragma once
#include "MantidGeometry/DllConfig.h"
#include "MantidKernel/DynamicFactory.h"
......@@ -92,5 +91,3 @@ EXTERN_MANTID_GEOMETRY template class MANTID_GEOMETRY_DLL Mantid::Kernel::
.subscribeScatterer<classname>()), \
0)); \
}
#endif /* MANTID_GEOMETRY_BRAGGSCATTERERFACTORY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_BRAGGSCATTERERINCRYSTALSTRUCTURE_H_
#define MANTID_GEOMETRY_BRAGGSCATTERERINCRYSTALSTRUCTURE_H_
#pragma once
#include "MantidGeometry/Crystal/BraggScatterer.h"
#include "MantidGeometry/Crystal/SpaceGroup.h"
......@@ -81,5 +80,3 @@ getTokenizedPositionString(const std::string &position);
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_BRAGGSCATTERERINCRYSTALSTRUCTURE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_CENTERINGGROUP_H_
#define MANTID_GEOMETRY_CENTERINGGROUP_H_
#pragma once
#include "MantidGeometry/Crystal/Group.h"
#include "MantidGeometry/DllConfig.h"
......@@ -92,5 +91,3 @@ EXTERN_MANTID_GEOMETRY template class MANTID_GEOMETRY_DLL Mantid::Kernel::
SingletonHolder<Mantid::Geometry::CenteringGroupCreatorImpl>;
}
} // namespace Mantid
#endif /* MANTID_GEOMETRY_CENTERINGGROUP_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_COMPOSITEBRAGGSCATTERER_H_
#define MANTID_GEOMETRY_COMPOSITEBRAGGSCATTERER_H_
#pragma once
#include "MantidGeometry/Crystal/BraggScatterer.h"
#include "MantidGeometry/DllConfig.h"
......@@ -85,5 +84,3 @@ protected:
};
} // namespace Geometry
} // namespace Mantid
#endif
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_CONCRETEPEAKTRANSFORMFACTORY_H_
#define MANTID_GEOMETRY_CONCRETEPEAKTRANSFORMFACTORY_H_
#pragma once
#include "MantidGeometry/Crystal/PeakTransformFactory.h"
#include <boost/make_shared.hpp>
......@@ -40,5 +39,3 @@ public:
};
} // namespace Geometry
} // namespace Mantid
#endif
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_CONVENTIONAL_CELL_H_
#define MANTID_GEOMETRY_CONVENTIONAL_CELL_H_
#pragma once
#include "MantidGeometry/Crystal/ReducedCell.h"
#include "MantidGeometry/DllConfig.h"
......@@ -82,5 +81,3 @@ private:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_CONVENTIONAL_CELL_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_CRYSTALSTRUCTURE_H_
#define MANTID_GEOMETRY_CRYSTALSTRUCTURE_H_
#pragma once
#include "MantidGeometry/Crystal/CompositeBraggScatterer.h"
#include "MantidGeometry/Crystal/HKLFilter.h"
......@@ -106,5 +105,3 @@ using CrystalStructure_sptr = boost::shared_ptr<CrystalStructure>;
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_CRYSTALSTRUCTURE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_CYCLICGROUP_H_
#define MANTID_GEOMETRY_CYCLICGROUP_H_
#pragma once
#include "MantidGeometry/Crystal/Group.h"
#include "MantidGeometry/DllConfig.h"
......@@ -80,5 +79,3 @@ using CyclicGroup_const_sptr = boost::shared_ptr<const CyclicGroup>;
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_CYCLICGROUP_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_EDGEPIXEL_H_
#define MANTID_GEOMETRY_EDGEPIXEL_H_
#pragma once
#include "MantidGeometry/Instrument.h"
......@@ -19,5 +18,3 @@ MANTID_GEOMETRY_DLL bool edgePixel(Geometry::Instrument_const_sptr inst,
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_EDGEPIXEL_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_GROUP_H_
#define MANTID_GEOMETRY_GROUP_H_
#pragma once
#include "MantidGeometry/Crystal/SymmetryOperation.h"
#include "MantidGeometry/DllConfig.h"
......@@ -212,5 +211,3 @@ MANTID_GEOMETRY_DLL bool operator!=(const Group_const_sptr &lhs,
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_GROUP_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_GROUPTRANSFORMATION_H_
#define MANTID_GEOMETRY_GROUPTRANSFORMATION_H_
#pragma once
#include "MantidGeometry/Crystal/Group.h"
#include "MantidGeometry/Crystal/SymmetryOperation.h"
......@@ -55,5 +54,3 @@ private:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_GROUPTRANSFORMATION_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_HKLFILTER_H_
#define MANTID_GEOMETRY_HKLFILTER_H_
#pragma once
#include "MantidGeometry/DllConfig.h"
#include "MantidKernel/V3D.h"
......@@ -156,5 +155,3 @@ operator|(const HKLFilter_const_sptr &lhs, const HKLFilter_const_sptr &rhs);
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_HKLFILTER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_HKLFILTERWAVELENGTH_H_
#define MANTID_GEOMETRY_HKLFILTERWAVELENGTH_H_
#pragma once
#include "MantidGeometry/Crystal/HKLFilter.h"
#include "MantidGeometry/DllConfig.h"
......@@ -41,5 +40,3 @@ protected:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_HKLFILTERWAVELENGTH_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_GEOMETRY_HKLGENERATOR_H_
#define MANTID_GEOMETRY_HKLGENERATOR_H_
#pragma once
#include "MantidGeometry/Crystal/UnitCell.h"
#include "MantidGeometry/DllConfig.h"
......@@ -167,5 +166,3 @@ private:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_HKLGENERATOR_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_IPEAK_H_
#define MANTID_API_IPEAK_H_
#pragma once
#include "MantidGeometry/Crystal/PeakShape.h"
#include "MantidGeometry/DllConfig.h"
......@@ -114,5 +113,3 @@ public:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_API_IPEAK_H_ */
......@@ -6,8 +6,7 @@
// SPDX - License - Identifier: GPL - 3.0 +
/* File: Indexing_Utils.h */
#ifndef MANTID_GEOMETRY_INDEXING_UTILS_H_
#define MANTID_GEOMETRY_INDEXING_UTILS_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -266,5 +265,3 @@ private:
} // namespace Geometry
} // namespace Mantid
#endif /* MANTID_GEOMETRY_INDEXING_UTILS_H_ */
Markdown is supported
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