Commit 88c3c8cb authored by Harriet Brown's avatar Harriet Brown
Browse files

Replace header guards in DataObjects with pragma once

This commit replaces all header guards in DataObjects 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_DATAOBJECTS_AFFINE_MATRIX_PARAMETER
#define MANTID_DATAOBJECTS_AFFINE_MATRIX_PARAMETER
#pragma once
#include "MantidAPI/ImplicitFunctionParameter.h"
#include "MantidGeometry/MDGeometry/MDTypes.h"
......@@ -58,5 +57,3 @@ private:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_AFFINE_MATRIX_PARAMETER_PARSER
#define MANTID_DATAOBJECTS_AFFINE_MATRIX_PARAMETER_PARSER
#pragma once
#include "MantidAPI/ImplicitFunctionParameterParser.h"
#include "MantidDataObjects/AffineMatrixParameter.h"
......@@ -40,5 +39,3 @@ private:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_BOXCONTROLLER_NEXUSS_IO_H
#define MANTID_DATAOBJECTS_BOXCONTROLLER_NEXUSS_IO_H
#pragma once
#include "MantidAPI/BoxController.h"
#include "MantidAPI/IBoxControllerIO.h"
......@@ -148,5 +147,4 @@ private:
const size_t nPoints) const;
};
} // namespace DataObjects
} // namespace Mantid
#endif
} // namespace Mantid
\ 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_DATAOBJECTS_CALCULATEREFLECTOMETRY_H_
#define MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRY_H_
#pragma once
#include "MantidGeometry/Math/Quadrilateral.h"
#include <cmath>
......@@ -55,5 +54,3 @@ public:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_CALCULATEREFLECTOMETRYKIKF_H_
#define MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRYKIKF_H_
#pragma once
#include "MantidDataObjects/CalculateReflectometry.h"
namespace Mantid {
......@@ -91,5 +90,4 @@ public:
}
};
} // namespace DataObjects
} // namespace Mantid
#endif // MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRYKIKF_H_
} // namespace Mantid
\ 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_DATAOBJECTS_CALCULATEREFLECTOMETRYP_H_
#define MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRYP_H_
#pragma once
#include "MantidDataObjects/CalculateReflectometry.h"
......@@ -98,5 +97,4 @@ public:
}
};
} // namespace DataObjects
} // namespace Mantid
#endif // MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRYP_H_
\ No newline at end of file
} // namespace Mantid
\ 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_DATAOBJECTS_CALCULATEREFLECTOMETRYQXQZ_H_
#define MANTID_DATAOBJECTS_CALCULATEREFLECTOMETRYQXQZ_H_
#pragma once
#include "MantidDataObjects/CalculateReflectometry.h"
......@@ -100,5 +99,3 @@ public:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_COORDTRANSFORMAFFINE_H_
#define MANTID_DATAOBJECTS_COORDTRANSFORMAFFINE_H_
#pragma once
#include "MantidAPI/CoordTransform.h"
#include "MantidAPI/SingleValueParameter.h"
......@@ -77,5 +76,3 @@ protected:
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_COORDTRANSFORMAFFINE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_COORDTRANSFORMPARSER_H_
#define MANTID_DATAOBJECTS_COORDTRANSFORMPARSER_H_
#pragma once
#include "MantidKernel/System.h"
#include <boost/shared_ptr.hpp>
......@@ -50,5 +49,3 @@ private:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_COORDTRANSFORMALIGNED_H_
#define MANTID_DATAOBJECTS_COORDTRANSFORMALIGNED_H_
#pragma once
#include "MantidAPI/CoordTransform.h"
#include "MantidAPI/VectorParameter.h"
......@@ -64,5 +63,3 @@ protected:
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_COORDTRANSFORMALIGNED_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_COORDTRANSFORMDISTANCE_H_
#define MANTID_DATAOBJECTS_COORDTRANSFORMDISTANCE_H_
#pragma once
#include "MantidAPI/CoordTransform.h"
#include "MantidAPI/VectorParameter.h"
......@@ -65,5 +64,3 @@ protected:
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_COORDTRANSFORMDISTANCE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_COORDTRANSFORMDISTANCEPARSER_H_
#define MANTID_DATAOBJECTS_COORDTRANSFORMDISTANCEPARSER_H_
#pragma once
#include "MantidDataObjects/CoordTransformAffineParser.h"
#include "MantidKernel/System.h"
......@@ -34,5 +33,3 @@ private:
};
} // namespace DataObjects
} // 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_DATAOBJECTS_DLLCONFIG_H_
#define MANTID_DATAOBJECTS_DLLCONFIG_H_
#pragma once
/*
This file contains the DLLExport/DLLImport linkage configuration for the
......@@ -22,5 +21,3 @@
#define MANTID_DATAOBJECTS_DLL DLLImport
#define EXTERN_MANTID_DATAOBJECTS EXTERN_IMPORT
#endif /* IN_MANTID_DATAOBJECTS*/
#endif // MANTID_DATAOBJECTS_DLLCONFIG_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_EVENTLIST_H_
#define MANTID_DATAOBJECTS_EVENTLIST_H_ 1
#pragma once
#include "MantidAPI/IEventList.h"
#include "MantidDataObjects/Events.h"
......@@ -565,5 +564,4 @@ DLLExport void getEventsFrom(const EventList &el,
std::vector<WeightedEventNoTime> const *&events);
} // namespace DataObjects
} // namespace Mantid
#endif /// MANTID_DATAOBJECTS_EVENTLIST_H_
} // namespace Mantid
\ 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_DATAOBJECTS_EVENTWORKSPACE_H_
#define MANTID_DATAOBJECTS_EVENTWORKSPACE_H_ 1
#pragma once
#include "MantidAPI/IEventWorkspace.h"
#include "MantidAPI/ISpectrum.h"
......@@ -183,5 +182,3 @@ using EventWorkspace_const_sptr = boost::shared_ptr<const EventWorkspace>;
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_EVENTWORKSPACE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef EVENTWORKSPACEHELPERS_H_
#define EVENTWORKSPACEHELPERS_H_
#pragma once
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidDataObjects/EventWorkspace.h"
......@@ -26,5 +25,3 @@ struct DLLExport EventWorkspaceHelpers {
} // namespace DataObjects
} // namespace Mantid
#endif /* EVENTWORKSPACEHELPERS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_EVENTWORKSPACEMRU_H_
#define MANTID_DATAOBJECTS_EVENTWORKSPACEMRU_H_
#pragma once
#include "MantidHistogramData/HistogramE.h"
#include "MantidHistogramData/HistogramY.h"
......@@ -102,5 +101,3 @@ protected:
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_EVENTWORKSPACEMRU_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_EVENTS_H_
#define MANTID_DATAOBJECTS_EVENTS_H_
#pragma once
#ifdef _WIN32 /* _WIN32 */
#include <time.h>
......@@ -218,5 +217,4 @@ inline double WeightedEventNoTime::errorSquared() const {
}
} // namespace DataObjects
} // namespace Mantid
#endif /// MANTID_DATAOBJECTS_EVENTS_H_
} // namespace Mantid
\ 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_DATAOBJECTS_FAKEMD_H_
#define MANTID_DATAOBJECTS_FAKEMD_H_
#pragma once
#include <vector>
......@@ -57,5 +56,3 @@ private:
} // namespace DataObjects
} // namespace Mantid
#endif /* MANTID_DATAOBJECTS_FAKEMD_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAOBJECTS_FRACTIONALREBINNING_
#define MANTID_DATAOBJECTS_FRACTIONALREBINNING_
#pragma once
//------------------------------------------------------------------------------
// Includes
......@@ -70,5 +69,3 @@ finalizeFractionalRebin(DataObjects::RebinnedOutput &outputWS);
} // namespace DataObjects
} // namespace Mantid
#endif
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