Commit 6d7179c3 authored by Harriet Brown's avatar Harriet Brown
Browse files

Replace header guards in qt/Widgets with pragma once

This commit replaces all header guards in qt/Widgets with #pragma once.
parent aaf83ba1
......@@ -10,8 +10,7 @@
/// \brief Test ranges to if they are equal
/// \author Marshall Clow
#ifndef BOOST_ALGORITHM_EQUAL_HPP
#define BOOST_ALGORITHM_EQUAL_HPP
#pragma once
#include <algorithm> // for std::equal
#include <iterator>
......@@ -94,6 +93,4 @@ bool equal ( InputIterator1 first1, InputIterator1 last1,
// There are already range-based versions of these.
}} // namespace boost and algorithm
#endif // BOOST_ALGORITHM_EQUAL_HPP
// clang-format on
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_API_BATCHALGORITHMRUNNER_H_
#define MANTID_API_BATCHALGORITHMRUNNER_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/Algorithm.h"
......@@ -206,5 +205,3 @@ private:
};
} // namespace API
} // namespace MantidQt
#endif /* MANTID_API_BATCHALGORITHMRUNNER_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_BOOLPROPERTYWIDGET_H_
#define MANTID_API_BOOLPROPERTYWIDGET_H_
#pragma once
#include "MantidKernel/PropertyWithValue.h"
#include "MantidKernel/System.h"
......@@ -41,5 +40,3 @@ protected:
} // namespace API
} // namespace MantidQt
#endif /* MANTID_API_BOOLPROPERTYWIDGET_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQTWIDGETS_CATALOGHELPER_H_
#define MANTIDQTWIDGETS_CATALOGHELPER_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/AlgorithmManager.h"
......@@ -66,5 +65,4 @@ private:
const std::map<std::string, std::string> &userInputFields);
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTWIDGETS_CATALOGHELPER_H_
} // namespace MantidQt
\ 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 MANTIDQTWIDGETS_CATALOGSEARCH_H_
#define MANTIDQTWIDGETS_CATALOGSEARCH_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/ITableWorkspace.h"
......@@ -201,5 +200,4 @@ private:
void correctedToolTip(std::string toolTip, QLabel *label);
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTWIDGETS_CATALOGSEARCH_H_
} // namespace MantidQt
\ 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 MANTIDQTWIDGETS_CATALOGSELECTOR_H_
#define MANTIDQTWIDGETS_CATALOGSELECTOR_H_
#pragma once
#include "DllOption.h"
#include "ui_CatalogSelector.h"
......@@ -38,5 +37,3 @@ protected:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTWIDGETS_CATALOGSELECTOR_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQTWIDGETS_CHECKBOXHEADER_H_
#define MANTIDQTWIDGETS_CHECKBOXHEADER_H_
#pragma once
#include "DllOption.h"
......@@ -50,5 +49,4 @@ private:
bool m_checked;
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTWIDGETS_CHECKBOXHEADER_H_
} // namespace MantidQt
\ 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 MANTIDQT_MANTIDWIDGETS_CONFIGURABLE_H
#define MANTIDQT_MANTIDWIDGETS_CONFIGURABLE_H
#pragma once
#include "MantidQtWidgets/Common/DllOption.h"
......@@ -30,5 +29,3 @@ public:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQT_MANTIDWIDGETS_CONFIGURABLE_H
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDWIDGETS_CONVOLUTIONFUNCTIONMODEL_H_
#define MANTIDWIDGETS_CONVOLUTIONFUNCTIONMODEL_H_
#pragma once
#include "DllOption.h"
#include "FunctionModel.h"
......@@ -78,5 +77,3 @@ private:
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDWIDGETS_CONVOLUTIONFUNCTIONMODEL_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQTMANTIDWIDGETS_ABSTRACTDATAPROCESSORTREEMODEL_H_
#define MANTIDQTMANTIDWIDGETS_ABSTRACTDATAPROCESSORTREEMODEL_H_
#pragma once
#include "MantidAPI/ITableWorkspace_fwd.h"
#include "MantidQtWidgets/Common/DataProcessorUI/WhiteList.h"
......@@ -76,5 +75,3 @@ protected:
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /* MANTIDQTMANTIDWIDGETS_ABSTRACTDATAPROCESSORTREEMODEL_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDGROUPCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDGROUPCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
#include "MantidQtWidgets/Common/DataProcessorUI/DataProcessorPresenter.h"
......@@ -40,5 +39,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDGROUPCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDROWCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDROWCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
#include "MantidQtWidgets/Common/DataProcessorUI/DataProcessorPresenter.h"
......@@ -40,5 +39,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORAPPENDROWCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCLEARSELECTEDCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCLEARSELECTEDCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
......@@ -37,5 +36,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCLEARSELECTEDCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLLAPSEGROUPSCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLLAPSEGROUPSCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
......@@ -38,5 +37,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLLAPSEGROUPSCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLUMN_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLUMN_H
#pragma once
#include "MantidQtWidgets/Common/DllOption.h"
#include <QString>
namespace MantidQt {
......@@ -38,5 +37,4 @@ private:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOLUMN_H
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMAND_H
#pragma once
#include <memory>
#include <vector>
......@@ -53,5 +52,4 @@ protected:
using Command_uptr = std::unique_ptr<Command>;
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMANDBASE_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMANDBASE_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/Command.h"
#include "MantidQtWidgets/Common/DataProcessorUI/DataProcessorPresenter.h"
......@@ -36,5 +35,4 @@ protected:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOMMANDBASE_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCONSTCOLUMNITERATOR_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCONSTCOLUMNITERATOR_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/Column.h"
#include "MantidQtWidgets/Common/DllOption.h"
#include <QString>
......@@ -62,5 +61,4 @@ ConstColumnIterator EXPORT_OPT_MANTIDQT_COMMON operator-(
ConstColumnIterator::difference_type n, const ConstColumnIterator &rhs);
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_DATAPROCESSORCONSTCOLUMNITERATOR_H
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOPYSELECTEDCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOPYSELECTEDCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
......@@ -39,5 +38,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCOPYSELECTEDCOMMAND_H*/
} // namespace MantidQt
\ 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 MANTIDQTMANTIDWIDGETS_DATAPROCESSORCUTSELECTEDCOMMAND_H
#define MANTIDQTMANTIDWIDGETS_DATAPROCESSORCUTSELECTEDCOMMAND_H
#pragma once
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
......@@ -39,5 +38,4 @@ public:
};
} // namespace DataProcessor
} // namespace MantidWidgets
} // namespace MantidQt
#endif /*MANTIDQTMANTIDWIDGETS_DATAPROCESSORCUTSELECTEDCOMMAND_H*/
} // namespace MantidQt
\ No newline at end of file
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