Skip to content

Commit 855ac2e

Browse files
committedApr 9, 2023
Fix overloaded virtual warning in QgsAuxiliaryLayer
1 parent 01c319f commit 855ac2e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed
 

‎python/core/auto_generated/qgsauxiliarystorage.sip.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Constructor
6161
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
6262
%End
6363

64+
using QgsVectorLayer::clone;
6465

6566
QgsAuxiliaryLayer *clone( QgsVectorLayer *layer ) const /Factory/;
6667
%Docstring

‎src/core/qgsauxiliarystorage.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
8989
% End
9090
#endif
9191

92-
#ifdef __clang__
93-
#pragma clang diagnostic push
94-
#pragma clang diagnostic ignored "-Woverloaded-virtual"
95-
#endif
92+
using QgsVectorLayer::clone;
9693

9794
/**
9895
* Returns a new instance equivalent to this one. The underlying table
@@ -102,9 +99,6 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
10299
* \param layer The layer for which the clone is made
103100
*/
104101
QgsAuxiliaryLayer *clone( QgsVectorLayer *layer ) const SIP_FACTORY;
105-
#ifdef __clang__
106-
#pragma clang diagnostic pop
107-
#endif
108102

109103
/**
110104
* An auxiliary layer is not spatial. This method returns a spatial

0 commit comments

Comments
 (0)
Please sign in to comment.