Skip to content

Commit

Permalink
add virtual destructor
Browse files Browse the repository at this point in the history
fix warning: delete called on 'QgsEditorWidgetAutoConfPlugin' that is abstract but has non-virtual destructor
  • Loading branch information
3nids committed Mar 28, 2018
1 parent e252f5c commit 721095e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/gui/editorwidgets/core/qgseditorwidgetautoconf.sip.in
Expand Up @@ -21,6 +21,8 @@ Base class for plugins allowing to pick automatically a widget type for editing
%End
public:

virtual ~QgsEditorWidgetAutoConfPlugin();

virtual QgsEditorWidgetSetup editorWidgetSetup( const QgsVectorLayer *vl, const QString &fieldName, int &score /Out/ ) const = 0;
%Docstring
Typical scores are:
Expand Down
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/core/qgseditorwidgetautoconf.h
Expand Up @@ -33,6 +33,8 @@ class GUI_EXPORT QgsEditorWidgetAutoConfPlugin
{
public:

virtual ~QgsEditorWidgetAutoConfPlugin() {}

/**
* Typical scores are:
* * 0: no matching type found.
Expand Down

0 comments on commit 721095e

Please sign in to comment.