Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
6d7179c3
Commit
6d7179c3
authored
Mar 09, 2020
by
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
Changes
555
Hide whitespace changes
Inline
Side-by-side
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmDialog.h
View file @
6d7179c3
...
...
@@ -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
...
...
@@ -343,5 +342,4 @@ protected:
//@}
};
}
// namespace API
}
// namespace MantidQt
#endif // MANTIDQT_API_ALGORITHMDIALOG_H_
}
// namespace MantidQt
\ No newline at end of file
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmDialogFactory.h
View file @
6d7179c3
...
...
@@ -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
...
...
@@ -67,5 +66,4 @@ namespace Kernel {
EXTERN_MANTIDQT_COMMON
template
class
EXPORT_OPT_MANTIDQT_COMMON
Mantid
::
Kernel
::
SingletonHolder
<
MantidQt
::
API
::
AlgorithmDialogFactoryImpl
>;
}
// namespace Kernel
}
// namespace Mantid
#endif
\ No newline at end of file
}
// namespace Mantid
\ No newline at end of file
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmHintStrategy.h
View file @
6d7179c3
...
...
@@ -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 */
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmHistoryWindow.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmInputHistory.h
View file @
6d7179c3
...
...
@@ -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_
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressDialogPresenter.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressDialogWidget.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressModel.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressPresenter.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressPresenterBase.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/AlgorithmProgressWidget.h
View file @
6d7179c3
...
...
@@ -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
//----------------------------------
...
...
@@ -71,5 +70,4 @@ private:
};
}
// namespace MantidWidgets
}
// namespace MantidQt
#endif // ALGORITHMPROGRESSWIDGET_H
\ No newline at end of file
}
// namespace MantidQt
\ No newline at end of file
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/IAlgorithmProgressDialogWidget.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmProgress/IAlgorithmProgressWidget.h
View file @
6d7179c3
#ifndef IALGORITHMPROGRESSWIDGET_H
#define IALGORITHMPROGRESSWIDGET_H
#pragma once
class
QString
;
namespace
MantidQt
{
...
...
@@ -17,5 +16,3 @@ public:
}
// namespace MantidWidgets
}
// namespace MantidQt
#endif // IALGORITHMPROGRESSWIDGET_H
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmPropertiesWidget.h
View file @
6d7179c3
...
...
@@ -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_ */
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmRunner.h
View file @
6d7179c3
...
...
@@ -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_ */
qt/widgets/common/inc/MantidQtWidgets/Common/AlgorithmSelectorWidget.h
View file @
6d7179c3
...
...
@@ -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_ */
qt/widgets/common/inc/MantidQtWidgets/Common/AlternateCSPythonLexer.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/BaseDecoder.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/BaseEncoder.h
View file @
6d7179c3
...
...
@@ -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
qt/widgets/common/inc/MantidQtWidgets/Common/Batch/AssertOrThrow.h
View file @
6d7179c3
...
...
@@ -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
Prev
1
2
3
4
5
…
28
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment