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
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQT_API_ALGORITHMDIALOG_H_
#define MANTIDQT_API_ALGORITHMDIALOG_H_
#pragma once
/* Used to register classes into the factory. creates a global object in an
* anonymous namespace. The object itself does nothing, but the comma operator
......@@ -344,4 +343,3 @@ protected:
};
} // namespace API
} // namespace MantidQt
\ No newline at end of file
#endif // MANTIDQT_API_ALGORITHMDIALOG_H_
......@@ -5,8 +5,7 @@
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQT_API_ALGORITHMDIALOGFACTORYIMPL_H_
#define MANTIDQT_API_ALGORITHMDIALOGFACTORYIMPL_H_
#pragma once
//------------------------
// Includes
......@@ -68,4 +67,3 @@ EXTERN_MANTIDQT_COMMON template class EXPORT_OPT_MANTIDQT_COMMON
Mantid::Kernel::SingletonHolder<MantidQt::API::AlgorithmDialogFactoryImpl>;
} // namespace Kernel
} // namespace Mantid
\ No newline at end of file
#endif
\ 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_MANTIDWIDGETS_ALGORITHMHINTSTRATEGY_H
#define MANTID_MANTIDWIDGETS_ALGORITHMHINTSTRATEGY_H
#pragma once
#include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/IAlgorithm.h"
......@@ -57,5 +56,3 @@ private:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif /* MANTID_MANTIDWIDGETS_ALGORITHMHINTSTRATEGY_H */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef ALGORITHMHISTORYWINDOW_H
#define ALGORITHMHISTORYWINDOW_H
#pragma once
#include "DllOption.h"
......@@ -217,5 +216,3 @@ private:
std::vector<Mantid::Kernel::PropertyHistory_sptr> m_Histprop;
};
#endif // ALGORITHMHISTORYWINDOW_H
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQT_API_ALGORITHMINPUTHISTORY_H_
#define MANTIDQT_API_ALGORITHMINPUTHISTORY_H_
#pragma once
//----------------------------------
// Includes
......@@ -103,5 +102,3 @@ EXTERN_MANTIDQT_COMMON template class EXPORT_OPT_MANTIDQT_COMMON
Mantid::Kernel::SingletonHolder<MantidQt::API::AlgorithmInputHistoryImpl>;
}
} // namespace Mantid
#endif // ALGORITHMINPUTHISTORY_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef ALGORITHMPROGRESSDIALOGPRESENTER_H
#define ALGORITHMPROGRESSDIALOGPRESENTER_H
#pragma once
#include "MantidAPI/IAlgorithm.h"
#include "MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressModel.h"
......@@ -52,5 +51,3 @@ private:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // ALGORITHMPROGRESSDIALOGPRESENTER_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_MANTIDWIDGETS_ALGORITHMPROGRESSDIALOGWIDGET_H
#define MANTID_MANTIDWIDGETS_ALGORITHMPROGRESSDIALOGWIDGET_H
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressDialogPresenter.h"
......@@ -74,5 +73,3 @@ private:
} // namespace MantidWidgets
} // namespace MantidQt
#endif // ALGORITHMPROGRESSDIALOGWIDGET_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 ALGORITHMPROGRESSMODEL_H
#define ALGORITHMPROGRESSMODEL_H
#pragma once
#include "MantidAPI/AlgorithmObserver.h"
#include "MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressPresenterBase.h"
......@@ -65,5 +64,3 @@ private:
} // namespace MantidWidgets
} // namespace MantidQt
#endif // ALGORITHMPROGRESSMODEL_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 ALGORITHMPROGRESSPRESENTER_H
#define ALGORITHMPROGRESSPRESENTER_H
#pragma once
#include "MantidKernel/Timer.h"
#include "MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressModel.h"
......@@ -61,5 +60,3 @@ private:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // ALGORITHMPROGRESSPRESENTER_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 ALGORITHMPROGRESSPRESENTERBASE_H
#define ALGORITHMPROGRESSPRESENTERBASE_H
#pragma once
#include "MantidAPI/Algorithm.h"
......@@ -59,5 +58,3 @@ signals:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // ALGORITHMPROGRESSPRESENTERBASE_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 ALGORITHMPROGRESSWIDGET_H
#define ALGORITHMPROGRESSWIDGET_H
#pragma once
//----------------------------------
// Includes
//----------------------------------
......@@ -72,4 +71,3 @@ private:
} // namespace MantidWidgets
} // namespace MantidQt
\ No newline at end of file
#endif // ALGORITHMPROGRESSWIDGET_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_MANTIDWIDGETS_IALGORITHMPROGRESSDIALOGWIDGET_H
#define MANTID_MANTIDWIDGETS_IALGORITHMPROGRESSDIALOGWIDGET_H
#pragma once
#include "MantidAPI/Algorithm.h"
......@@ -34,5 +33,3 @@ public:
};
} // namespace MantidWidgets
} // namespace MantidQt
#endif // IALGORITHMPROGRESSDIALOGWIDGET_H
\ No newline at end of file
#ifndef IALGORITHMPROGRESSWIDGET_H
#define IALGORITHMPROGRESSWIDGET_H
#pragma once
class QString;
namespace MantidQt {
......@@ -17,5 +16,3 @@ public:
} // namespace MantidWidgets
} // namespace MantidQt
#endif // IALGORITHMPROGRESSWIDGET_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_ALGORITHMPROPERTIESWIDGET_H_
#define MANTID_API_ALGORITHMPROPERTIESWIDGET_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/IAlgorithm.h"
......@@ -111,5 +110,3 @@ private:
} // namespace API
} // namespace MantidQt
#endif /* MANTID_API_ALGORITHMPROPERTIESWIDGET_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_ALGORITHMRUNNER_H_
#define MANTID_API_ALGORITHMRUNNER_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/Algorithm.h"
......@@ -77,5 +76,3 @@ protected:
} // namespace API
} // namespace MantidQt
#endif /* MANTID_API_ALGORITHMRUNNER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_MANTIDWIDGETS_ALGORITHMSELECTORWIDGET_H_
#define MANTID_MANTIDWIDGETS_ALGORITHMSELECTORWIDGET_H_
#pragma once
#include "DllOption.h"
#include "MantidAPI/AlgorithmFactory.h"
......@@ -149,5 +148,3 @@ private:
} // namespace MantidWidgets
} // namespace MantidQt
#endif /* MANTID_MANTIDWIDGETS_ALGORITHMSELECTORWIDGET_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQT_WIDGETS_ALTERNATECSPYTHONLEXER_H
#define MANTIDQT_WIDGETS_ALTERNATECSPYTHONLEXER_H
#pragma once
#include <Qsci/qscilexerpython.h>
......@@ -23,5 +22,3 @@ public:
private:
QFont m_font;
};
#endif // MANTIDQT_WIDGETS_ALTERNATECSPYTHONLEXER_H
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTIDQT_API_ABSTRACTDECODER_H_
#define MANTIDQT_API_ABSTRACTDECODER_H_
#pragma once
#include <QList>
#include <QMap>
......@@ -26,5 +25,3 @@ public:
} // namespace API
} // namespace MantidQt
#endif /* MANTIDQT_API_ABSTRACTDECODER_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 MANTIDQT_API_ABSTRACTENCODER_H_
#define MANTIDQT_API_ABSTRACTENCODER_H_
#pragma once
#include <QList>
#include <QMap>
......@@ -26,5 +25,3 @@ public:
} // namespace API
} // namespace MantidQt
#endif /* MANTIDQT_API_ABSTRACTENCODER_H_ */
\ 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_ASSERTORTHROW_H_
#define MANTIDQTMANTIDWIDGETS_ASSERTORTHROW_H_
#pragma once
#include <stdexcept>
#include <string>
......@@ -17,5 +16,3 @@ inline void assertOrThrow(bool condition, std::string const &message) {
if (!condition)
throw std::runtime_error(message);
}
#endif
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