Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix overloaded virtual warning in QgsAuxiliaryLayer
  • Loading branch information
nyalldawson committed Apr 9, 2023
1 parent 01c319f commit 855ac2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsauxiliarystorage.sip.in
Expand Up @@ -61,6 +61,7 @@ Constructor
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End

using QgsVectorLayer::clone;

QgsAuxiliaryLayer *clone( QgsVectorLayer *layer ) const /Factory/;
%Docstring
Expand Down
8 changes: 1 addition & 7 deletions src/core/qgsauxiliarystorage.h
Expand Up @@ -89,10 +89,7 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
% End
#endif

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Woverloaded-virtual"
#endif
using QgsVectorLayer::clone;

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

/**
* An auxiliary layer is not spatial. This method returns a spatial
Expand Down

0 comments on commit 855ac2e

Please sign in to comment.