Skip to content

Commit

Permalink
forward declaration of unique_ptr (#9708)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 4, 2019
1 parent 0a10dc5 commit 81cfde2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/gui/auto_generated/qgsexpressionlineedit.sip.in
Expand Up @@ -38,6 +38,7 @@ Constructor for QgsExpressionLineEdit.

:param parent: parent widget
%End
~QgsExpressionLineEdit();

void setExpressionDialogTitle( const QString &title );
%Docstring
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsexpressionlineedit.cpp
Expand Up @@ -46,6 +46,8 @@ QgsExpressionLineEdit::QgsExpressionLineEdit( QWidget *parent )
<< QgsExpressionContextUtils::projectScope( QgsProject::instance() );
}

QgsExpressionLineEdit::~QgsExpressionLineEdit() = default;

void QgsExpressionLineEdit::setExpressionDialogTitle( const QString &title )
{
mExpressionDialogTitle = title;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionlineedit.h
Expand Up @@ -19,7 +19,6 @@
#include <QWidget>
#include "qgis_sip.h"
#include "qgsexpressioncontext.h"
#include "qgsdistancearea.h"
#include "qgis_gui.h"
#include <memory>

Expand Down Expand Up @@ -57,6 +56,7 @@ class GUI_EXPORT QgsExpressionLineEdit : public QWidget
* \param parent parent widget
*/
explicit QgsExpressionLineEdit( QWidget *parent SIP_TRANSFERTHIS = nullptr );
~QgsExpressionLineEdit() override;

/**
* Sets the title used in the expression builder dialog
Expand Down

0 comments on commit 81cfde2

Please sign in to comment.