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