Skip to content

Commit

Permalink
Fix some issues preventing use of clang-tidy on files
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Mar 8, 2023
1 parent 50bdb22 commit 9154758
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 13 deletions.
6 changes: 6 additions & 0 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -2519,6 +2519,12 @@ QgsLayoutItemMapGrid::AnnotationDirection QgsLayoutItemMapGrid::annotationDirect
return mLeftGridAnnotationDirection; // no warnings
}

void QgsLayoutItemMapGrid::setAnnotationExpression( const QString &expression )
{
mGridAnnotationExpressionString = expression;
mGridAnnotationExpression.reset();
}

void QgsLayoutItemMapGrid::setFrameDivisions( const QgsLayoutItemMapGrid::DisplayMode divisions, const QgsLayoutItemMapGrid::BorderSide border )
{
switch ( border )
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemmapgrid.h
Expand Up @@ -719,7 +719,7 @@ class CORE_EXPORT QgsLayoutItemMapGrid : public QgsLayoutItemMapItem
* is QgsLayoutItemMapGrid::CustomFormat.
* \see annotationExpression()
*/
void setAnnotationExpression( const QString &expression ) { mGridAnnotationExpressionString = expression; mGridAnnotationExpression.reset(); }
void setAnnotationExpression( const QString &expression );

/**
* Returns the expression used for drawing grid annotations. This is only used when annotationFormat()
Expand Down
5 changes: 5 additions & 0 deletions src/core/pal/problem.cpp
Expand Up @@ -61,6 +61,11 @@ Problem::Problem( const QgsRectangle &extent )

}

void Problem::addCandidatePosition( std::unique_ptr<LabelPosition> position )
{
mLabelPositions.emplace_back( std::move( position ) );
}

Problem::~Problem() = default;

void Problem::reduce()
Expand Down
2 changes: 1 addition & 1 deletion src/core/pal/problem.h
Expand Up @@ -96,7 +96,7 @@ namespace pal
* \param position label candidate position. Ownership is transferred to Problem.
* \since QGIS 2.12
*/
void addCandidatePosition( std::unique_ptr< LabelPosition > position ) { mLabelPositions.emplace_back( std::move( position ) ); }
void addCandidatePosition( std::unique_ptr< LabelPosition > position );

/**
* Returns the total number of features considered during the labeling problem.
Expand Down
6 changes: 1 addition & 5 deletions src/core/pal/util.cpp
Expand Up @@ -27,12 +27,8 @@
*
*/

#include "layer.h"
#include "internalexception.h"
#include "qgsgeos.h"
#include "util.h"
#include "labelposition.h"
#include "feature.h"
#include "geomfunction.h"

#include "qgslogger.h"
#include <cfloat>
Expand Down
3 changes: 3 additions & 0 deletions src/core/pal/util.h
Expand Up @@ -34,9 +34,12 @@


#include <QList>
#include <QLinkedList>
#include <vector>
#include <memory>

typedef struct GEOSGeom_t GEOSGeometry;

namespace pal
{

Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudstatscalculator.h
Expand Up @@ -63,7 +63,7 @@ class CORE_EXPORT QgsPointCloudStatsCalculator : public QObject
QgsPointCloudStatistics statistics() const { return mStats; }

private:
std::unique_ptr<QgsPointCloudIndex> mIndex = nullptr;
std::unique_ptr<QgsPointCloudIndex> mIndex;

QgsPointCloudStatistics mStats;
QSet<IndexedPointCloudNode> mProcessedNodes;
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayerprofilegenerator.h
Expand Up @@ -84,7 +84,7 @@ class CORE_EXPORT QgsRasterLayerProfileGenerator : public QgsAbstractProfileSurf

private:
QString mId;
std::unique_ptr<QgsRasterBlockFeedback> mFeedback = nullptr;
std::unique_ptr<QgsRasterBlockFeedback> mFeedback;

std::unique_ptr< QgsCurve > mProfileCurve;

Expand Down
8 changes: 4 additions & 4 deletions src/gui/processing/qgsprocessingmeshdatasetwidget.h
Expand Up @@ -54,10 +54,10 @@ class GUI_EXPORT QgsProcessingMeshDatasetGroupsWidget : public QWidget
const QgsProcessingParameterMeshDatasetGroups *mParam = nullptr;
QVariantList mValue;

QPointer<QLineEdit> mLineEdit = nullptr;
QPointer<QToolButton> mToolButton = nullptr;
QPointer<QAction> mActionCurrentActiveDatasetGroups = nullptr;
QPointer<QAction> mActionAvailableDatasetGroups = nullptr;
QPointer<QLineEdit> mLineEdit;
QPointer<QToolButton> mToolButton;
QPointer<QAction> mActionCurrentActiveDatasetGroups;
QPointer<QAction> mActionAvailableDatasetGroups;
QgsMeshLayer *mMeshLayer = nullptr;
QMap<int, QString> mDatasetGroupsNames; //used to store the dataet groups name if layer is not referenced

Expand Down
1 change: 1 addition & 0 deletions src/gui/qgssubsetstringeditorproviderregistry.h
Expand Up @@ -26,6 +26,7 @@
class QgsSubsetStringEditorInterface;
class QgsSubsetStringEditorProvider;
class QgsProviderGuiRegistry;
class QgsVectorLayer;

/**
* \ingroup gui
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgswindowmanagerinterface.h
Expand Up @@ -21,6 +21,7 @@

class QgsVectorLayer;
class QgsRasterLayer;
class QWidget;

///@cond NOT_STABLE

Expand Down

0 comments on commit 9154758

Please sign in to comment.