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
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_BUILDSUBTREE_H_
#define MANTIDQTMANTIDWIDGETS_BUILDSUBTREE_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/AssertOrThrow.h"
#include "MantidQtWidgets/Common/Batch/QtStandardItemTreeAdapter.h"
#include "MantidQtWidgets/Common/Batch/RowLocationAdapter.h"
......@@ -42,5 +41,4 @@ private:
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_CELL_H_
#define MANTIDQTMANTIDWIDGETS_CELL_H_
#pragma once
#include "MantidQtWidgets/Common/DllOption.h"
#include <string>
#include <vector>
......@@ -85,5 +84,4 @@ paddedCellsToWidth(std::vector<Cell> const &cells, Cell const &paddingCell,
int paddedWidth);
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_CELL_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_CELLDELEGATE_H_
#define MANTIDQTMANTIDWIDGETS_CELLDELEGATE_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/FilteredTreeModel.h"
#include <QStandardItemModel>
#include <QStyledItemDelegate>
......@@ -33,5 +32,4 @@ private:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_CELLDELEGATE_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_CELLSTANDARDITEM_H_
#define MANTIDQTMANTIDWIDGETS_CELLSTANDARDITEM_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Cell.h"
#include <QColor>
#include <QStandardItem>
......@@ -46,5 +45,4 @@ void applyCellPropertiesToItem(Cell const &cell, QStandardItem &item);
Cell extractCellPropertiesFromItem(QStandardItem const &item);
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_CELLSTANDARDITEM_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_EXTRACTSUBTREES_H_
#define MANTIDQTMANTIDWIDGETS_EXTRACTSUBTREES_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/AssertOrThrow.h"
#include "MantidQtWidgets/Common/Batch/Row.h"
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
......@@ -45,5 +44,4 @@ private:
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_FILTEREDTREEMODEL_H_
#define MANTIDQTMANTIDWIDGETS_FILTEREDTREEMODEL_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
#include "MantidQtWidgets/Common/Batch/RowLocationAdapter.h"
#include "MantidQtWidgets/Common/Batch/RowPredicate.h"
......@@ -38,5 +37,4 @@ private:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_FILTEREDTREEMODEL_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_FINDSUBTREEROOTS_H_
#define MANTIDQTMANTIDWIDGETS_FINDSUBTREEROOTS_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/AssertOrThrow.h"
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
#include "MantidQtWidgets/Common/DllOption.h"
......@@ -32,5 +31,4 @@ private:
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif
} // 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_IJOBTREEVIEW_H_
#define MANTIDQTMANTIDWIDGETS_IJOBTREEVIEW_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Cell.h"
#include "MantidQtWidgets/Common/Batch/Row.h"
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
......@@ -104,5 +103,4 @@ public:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_IJOBTREEVIEW_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_JOBTREEVIEW_H_
#define MANTIDQTMANTIDWIDGETS_JOBTREEVIEW_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Cell.h"
#include "MantidQtWidgets/Common/Batch/ExtractSubtrees.h"
#include "MantidQtWidgets/Common/Batch/FilteredTreeModel.h"
......@@ -179,5 +178,4 @@ private:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_JOBTREEVIEW_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_H_
#define MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/JobTreeView.h"
#include "MantidQtWidgets/Common/DllOption.h"
namespace MantidQt {
......@@ -57,5 +56,4 @@ signals:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_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_MOCKJOBTREEVIEW_H_
#define MANTIDQTMANTIDWIDGETS_MOCKJOBTREEVIEW_H_
#pragma once
#include "MantidKernel/WarningSuppressions.h"
#include "MantidQtWidgets/Common/Batch/IJobTreeView.h"
#include <gmock/gmock.h>
......@@ -93,5 +92,4 @@ private:
GNU_DIAG_ON_SUGGEST_OVERRIDE
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_MOCKJOBTREEVIEW_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_QTBASICNAVIGATION_H_
#define MANTIDQTMANTIDWIDGETS_QTBASICNAVIGATION_H_
#pragma once
#include <QModelIndex>
namespace MantidQt {
......@@ -30,5 +29,4 @@ bool hasRowBelow(QModelIndex const &index);
bool areOnSameRow(QModelIndex const &a, QModelIndex const &b);
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_QTBASICNAVIGATION_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_TREEITEMMODELADAPTER_H_
#define MANTIDQTMANTIDWIDGETS_TREEITEMMODELADAPTER_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Row.h"
#include "MantidQtWidgets/Common/Batch/StrictQModelIndices.h"
#include "MantidQtWidgets/Common/DllOption.h"
......@@ -90,5 +89,4 @@ modelItemFromIndex(QStandardItemModel const &model,
QModelIndexForMainModel const &index);
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_TREEITEMMODELADAPTER_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_QTTREECURSORNAVIGATION_H_
#define MANTIDQTMANTIDWIDGETS_QTTREECURSORNAVIGATION_H_
#pragma once
#include <QModelIndex>
#include <utility>
namespace MantidQt {
......@@ -44,5 +43,4 @@ private:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_QTTREECURSORNAVIGATION_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_ROW_H_
#define MANTIDQTMANTIDWIDGETS_ROW_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Cell.h"
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
#include "MantidQtWidgets/Common/DllOption.h"
......@@ -46,5 +45,4 @@ EXPORT_OPT_MANTIDQT_COMMON bool operator>=(Row const &lhs, Row const &rhs);
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_ROWLOCATION_H_
#define MANTIDQTMANTIDWIDGETS_ROWLOCATION_H_
#pragma once
#include "MantidQtWidgets/Common/DllOption.h"
#include <boost/optional.hpp>
#include <ostream>
......@@ -54,5 +53,4 @@ pathsSameUntilDepth(int depth, RowLocation const &locationA,
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_ROWLOCATIONADAPTER_H_
#define MANTIDQTMANTIDWIDGETS_ROWLOCATIONADAPTER_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
#include "MantidQtWidgets/Common/Batch/StrictQModelIndices.h"
#include "MantidQtWidgets/Common/DllOption.h"
......@@ -35,5 +34,4 @@ private:
};
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_ROWLOCATIONADAPTER_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_ROWPREDICATE_H_
#define MANTIDQTMANTIDWIDGETS_ROWPREDICATE_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
#include <memory>
......@@ -47,5 +46,4 @@ std::unique_ptr<RowPredicate> makeFilterFromLambda(Predicate predicate) {
}
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_ROWPREDICATE_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_STRICTQMODELINDICES_H_
#define MANTIDQTMANTIDWIDGETS_STRICTQMODELINDICES_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/AssertOrThrow.h"
#include "MantidQtWidgets/Common/DllOption.h"
#include <QModelIndex>
......@@ -99,5 +98,4 @@ inline QModelIndexForMainModel fromMainModel(QModelIndex const &mainModelIndex,
}
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_STRICTQMODELINDICES_H_
} // namespace MantidQt
\ No newline at end of file
......@@ -8,8 +8,7 @@
See the developer documentation for Batch Widget at
developer.mantidproject.org/BatchWidget/index.html
*/
#ifndef MANTIDQTMANTIDWIDGETS_SUBTREE_H_
#define MANTIDQTMANTIDWIDGETS_SUBTREE_H_
#pragma once
#include "MantidQtWidgets/Common/Batch/Row.h"
namespace MantidQt {
......@@ -77,5 +76,4 @@ bool allSubtreeRootsShareAParentAndAllSubtreeNodesAreConnected(
}
} // namespace Batch
} // namespace MantidWidgets
} // namespace MantidQt
#endif // MANTIDQTMANTIDWIDGETS_SUBTREE_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