Skip to content

Commit 721095e

Browse files
committed
add virtual destructor
fix warning: delete called on 'QgsEditorWidgetAutoConfPlugin' that is abstract but has non-virtual destructor
1 parent e252f5c commit 721095e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

python/gui/editorwidgets/core/qgseditorwidgetautoconf.sip.in

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Base class for plugins allowing to pick automatically a widget type for editing
2121
%End
2222
public:
2323

24+
virtual ~QgsEditorWidgetAutoConfPlugin();
25+
2426
virtual QgsEditorWidgetSetup editorWidgetSetup( const QgsVectorLayer *vl, const QString &fieldName, int &score /Out/ ) const = 0;
2527
%Docstring
2628
Typical scores are:

src/gui/editorwidgets/core/qgseditorwidgetautoconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class GUI_EXPORT QgsEditorWidgetAutoConfPlugin
3333
{
3434
public:
3535

36+
virtual ~QgsEditorWidgetAutoConfPlugin() {}
37+
3638
/**
3739
* Typical scores are:
3840
* * 0: no matching type found.

0 commit comments

Comments
 (0)