Skip to content
Snippets Groups Projects
Commit 9b1a5302 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Use #pragma once instead of cpp macros.

parent a579fbcd
Branches
Tags
No related merge requests found
Showing
with 20 additions and 81 deletions
......@@ -7,8 +7,7 @@
*
*/
#ifndef APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
#define APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
#pragma once
/// The LinearSolverLibrarySetup takes care of proper initialization and
/// shutting down of an external linear solver library. The concrete
......@@ -74,6 +73,3 @@ struct LinearSolverLibrarySetup final
};
} // ApplicationsLib
#endif
#endif // APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
......@@ -7,8 +7,7 @@
*
*/
#ifndef APPLICATIONSLIB_LOGOGSETUP_H_
#define APPLICATIONSLIB_LOGOGSETUP_H_
#pragma once
#include <map>
#include <memory>
......@@ -83,5 +82,3 @@ private:
};
} // ApplicationsLib
#endif // APPLICATIONSLIB_LOGOGSETUP_H_
......@@ -10,8 +10,7 @@
*
*/
#ifndef PROJECTDATA_H_
#define PROJECTDATA_H_
#pragma once
#include <boost/optional/optional.hpp>
#include <map>
......@@ -171,5 +170,3 @@ private:
std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
_curves;
};
#endif // PROJECTDATA_H_
......@@ -12,8 +12,7 @@
*
*/
#ifndef CHECKBOXDELEGATE_H
#define CHECKBOXDELEGATE_H
#pragma once
#include <QItemDelegate>
......@@ -47,5 +46,3 @@ public:
private:
QRect checkboxRect(const QStyleOptionViewItem& viewItemStyleOptions) const;
};
#endif // CHECKBOXDELEGATE_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef COLORPICKERPUSHBUTTON_H
#define COLORPICKERPUSHBUTTON_H
#pragma once
// ** INCLUDES **
#include <QPushButton>
......@@ -51,5 +50,3 @@ signals:
/// Is emitted when a color was picked from the dialog.
void colorPicked(QColor);
};
#endif // COLORPICKERPUSHBUTTON_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef IMPORTFILETYPES_H
#define IMPORTFILETYPES_H
#pragma once
#include <string>
......@@ -91,5 +90,3 @@ public:
}
};
#endif //IMPORTFILETYPES_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef LASTUSEDSAVEDFILEDIRECTORY_H
#define LASTUSEDSAVEDFILEDIRECTORY_H
#pragma once
#include <QDir>
#include <QFileInfo>
......@@ -40,6 +39,3 @@ public:
}
};
#endif //LASTUSEDSAVEDFILEDIRECTORY_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef OGSERROR_H
#define OGSERROR_H
#pragma once
class QString;
......@@ -53,5 +52,3 @@ protected:
OGSError();
~OGSError();
};
#endif //OGSERROR_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef QNONSCALABLETEXTITEM_H
#define QNONSCALABLETEXTITEM_H
#pragma once
#include <QGraphicsTextItem>
......@@ -32,5 +31,3 @@ public:
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
virtual QRectF boundingRect() const;
};
#endif //QNONSCALABLETEXTITEM_H
......@@ -11,8 +11,7 @@
* http://www.opengeosys.org/project/license
*/
#ifndef QVALUETOOLTIPSLIDER_H
#define QVALUETOOLTIPSLIDER_H
#pragma once
#include <QSlider>
......@@ -31,5 +30,3 @@ public slots:
protected:
};
#endif // QVALUETOOLTIPSLIDER_H
......@@ -11,8 +11,7 @@
* http://www.opengeosys.org/project/license
*/
#ifndef RECENTFILES_H
#define RECENTFILES_H
#pragma once
// ** INCLUDES **
#include <QAction>
......@@ -72,5 +71,3 @@ private:
enum { _maxFiles = 5 };
QAction* _fileActions[_maxFiles];
};
#endif // RECENTFILES_H
......@@ -11,8 +11,7 @@
* http://www.opengeosys.org/project/license
*/
#ifndef STRICTDOUBLEVALIDATOR_H_
#define STRICTDOUBLEVALIDATOR_H_
#pragma once
#include <QDoubleValidator>
......@@ -40,5 +39,3 @@ public:
return Acceptable;
}
};
#endif /* STRICTDOUBLEVALIDATOR_H_ */
......@@ -12,8 +12,7 @@
*/
#ifndef STRICTINTVALIDATOR_H_
#define STRICTINTVALIDATOR_H_
#pragma once
#include <QIntValidator>
......@@ -37,5 +36,3 @@ public:
return Acceptable;
}
};
#endif /* STRICTINTVALIDATOR_H_ */
......@@ -12,8 +12,7 @@
*
*/
#ifndef QTREEITEM_H
#define QTREEITEM_H
#pragma once
#include <QList>
#include <QVariant>
......@@ -46,5 +45,3 @@ private:
QList<QVariant> _itemData;
TreeItem* _parentItem;
};
#endif //QTREEITEM_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef QTREEMODEL_H
#define QTREEMODEL_H
#pragma once
#include <QAbstractItemModel>
......@@ -58,5 +57,3 @@ protected:
private:
void setupModelData(const QStringList &lines, TreeItem* parent);
};
#endif //QTREEMODEL_H
......@@ -12,8 +12,7 @@
*/
#ifndef TREEMODELITERATOR_H
#define TREEMODELITERATOR_H
#pragma once
// ** INCLUDES **
#include <QStack>
......@@ -61,5 +60,3 @@ private:
/// \brief The traversal implementation.
TreeItem* next(const TreeItem* current);
};
#endif // TREEMODELITERATOR_H
......@@ -21,8 +21,7 @@
**
****************************************************************************/
#ifndef MODELTEST_H
#define MODELTEST_H
#pragma once
#include <QtCore/QAbstractItemModel>
#include <QtCore/QObject>
......@@ -72,5 +71,3 @@ private:
QList<QPersistentModelIndex> changing;
};
#endif
......@@ -12,8 +12,7 @@
*
*/
#ifndef ADDLAYERTOMESHDIALOG_H
#define ADDLAYERTOMESHDIALOG_H
#pragma once
#include "ui_AddLayerToMesh.h"
......@@ -46,5 +45,3 @@ private slots:
/// Instructions if the Cancel-Button has been pressed.
void reject();
};
#endif //ADDLAYERTOMESHDIALOG_H
......@@ -11,8 +11,7 @@
* http://www.opengeosys.org/project/license
*
*/
#ifndef BASEITEM_H
#define BASEITEM_H
#pragma once
#include "Point.h"
......@@ -61,5 +60,3 @@ private:
/// visualization pipeline.
vtkPolyDataAlgorithm* _vtkSource;
};
#endif //BASEITEM_H
......@@ -12,8 +12,7 @@
*
*/
#ifndef COLORTABLEMODEL_H
#define COLORTABLEMODEL_H
#pragma once
#include <QAbstractTableModel>
#include <QColor>
......@@ -50,4 +49,3 @@ private:
QList< QPair<QString, QColor> > _listOfPairs;
};
#endif // COLORTABLEMODEL_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment