Skip to content

Commit

Permalink
include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 26, 2024
1 parent 8c5210c commit fdd549a
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsmaptooladdfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* *
***************************************************************************/

#ifndef QGSMAPTOOLADDFEATURE_H
#define QGSMAPTOOLADDFEATURE_H

#include "qgsmaptooldigitizefeature.h"
#include "qgis_app.h"

Expand Down Expand Up @@ -51,3 +54,5 @@ class APP_EXPORT QgsMapToolAddFeature : public QgsMapToolDigitizeFeature
*/
bool mCheckGeometryType;
};

#endif // QGSMAPTOOLADDFEATURE_H
5 changes: 5 additions & 0 deletions src/app/qgsmaptooladdpart.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* *
***************************************************************************/

#ifndef QGSMAPTOOLADDPART_H
#define QGSMAPTOOLADDPART_H

#include "qgsmaptoolcapturelayergeometry.h"
#include "qgis_app.h"

Expand Down Expand Up @@ -47,3 +50,5 @@ class APP_EXPORT QgsMapToolAddPart : public QgsMapToolCaptureLayerGeometry

void finalizeEditCommand( QgsVectorLayer *layer, Qgis::GeometryOperationResult errorCode );
};

#endif // QGSMAPTOOLADDPART_H
5 changes: 5 additions & 0 deletions src/app/qgsmaptooladdring.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* *
***************************************************************************/

#ifndef QGSMAPTOOLADDRING_H
#define QGSMAPTOOLADDRING_H

#include "qgsmaptoolcapture.h"
#include "qgis_app.h"

Expand All @@ -31,3 +34,5 @@ class APP_EXPORT QgsMapToolAddRing: public QgsMapToolCapture
QgsVectorLayer *getCheckLayer();
void polygonCaptured( const QgsCurvePolygon *polygon ) override;
};

#endif // QGSMAPTOOLADDRING_H
5 changes: 5 additions & 0 deletions src/app/qgsmaptoolfillring.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* *
***************************************************************************/

#ifndef QGSMAPTOOLFILLRING_H
#define QGSMAPTOOLFILLRING_H

#include "qgsmaptoolcapture.h"
#include "qgis_app.h"

Expand All @@ -40,3 +43,5 @@ class APP_EXPORT QgsMapToolFillRing: public QgsMapToolCapture

QgsVectorLayer *getCheckLayer();
};

#endif // QGSMAPTOOLFILLRING_H
5 changes: 5 additions & 0 deletions src/app/qgsprojectproperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
***************************************************************************/


#ifndef QGSPROJECTPROPERTIES_H
#define QGSPROJECTPROPERTIES_H

#include "ui_qgsprojectpropertiesbase.h"

#include "qgsoptionsdialogbase.h"
Expand Down Expand Up @@ -305,3 +308,5 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui:

friend class TestQgsProjectProperties;
};

#endif // QGSPROJECTPROPERTIES_H
4 changes: 4 additions & 0 deletions src/core/providers/memory/qgsmemoryprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* *
***************************************************************************/

#ifndef QGSMEMORYPROVIDER_H
#define QGSMEMORYPROVIDER_H

#define SIP_NO_FILE

#include "qgsvectordataprovider.h"
Expand Down Expand Up @@ -113,3 +116,4 @@ class QgsMemoryProviderMetadata final: public QgsProviderMetadata
};

///@endcond
#endif // QGSMEMORYPROVIDER_H
5 changes: 5 additions & 0 deletions src/gui/qgsdial.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* *
***************************************************************************/

#ifndef QGSDIAL_H
#define QGSDIAL_H

#include <QDial>
#include <QVariant>
#include "qgis_gui.h"
Expand Down Expand Up @@ -57,3 +60,5 @@ class GUI_EXPORT QgsDial : public QDial

QVariant mMin, mMax, mStep, mValue;
};

#endif // QGSDIAL_H
5 changes: 5 additions & 0 deletions src/gui/qgsslider.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* *
***************************************************************************/

#ifndef QGSSLIDER_H
#define QGSSLIDER_H

#include <QSlider>
#include "qgis_sip.h"
#include <QVariant>
Expand Down Expand Up @@ -57,3 +60,5 @@ class GUI_EXPORT QgsSlider : public QSlider

QVariant mMin, mMax, mStep, mValue;
};

#endif // QGSSLIDER_H
5 changes: 5 additions & 0 deletions src/providers/oracle/ocispatial/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
**
****************************************************************************/

#ifndef MAIN_H
#define MAIN_H

#include <qsqldriverplugin.h>
#include "qsql_ocispatial.h"

Expand All @@ -54,3 +57,5 @@ class QOCISpatialDriverPlugin : public QSqlDriverPlugin

QSqlDriver *create( const QString & ) override;
};

#endif // MAIN_H

0 comments on commit fdd549a

Please sign in to comment.