Skip to content
Permalink
Browse files

Optimise destructors (pt 3)

  • Loading branch information
nyalldawson committed Jan 1, 2017
1 parent 6579c4c commit ef0131dfe3a083cb66d4effb82b4a557f80e0f62
Showing with 16 additions and 712 deletions.
  1. +0 −4 src/app/qgisappinterface.cpp
  2. +0 −1 src/app/qgisappinterface.h
  3. +0 −2 src/core/symbology-ng/qgsrendererregistry.cpp
  4. +1 −1 src/core/symbology-ng/qgsrendererregistry.h
  5. +0 −4 src/gui/auth/qgsauthauthoritieseditor.cpp
  6. +0 −1 src/gui/auth/qgsauthauthoritieseditor.h
  7. +0 −7 src/gui/auth/qgsauthcertificateinfo.cpp
  8. +0 −2 src/gui/auth/qgsauthcertificateinfo.h
  9. +0 −9 src/gui/auth/qgsauthcertificatemanager.cpp
  10. +0 −3 src/gui/auth/qgsauthcertificatemanager.h
  11. +0 −4 src/gui/auth/qgsauthcerttrustpolicycombobox.cpp
  12. +0 −1 src/gui/auth/qgsauthcerttrustpolicycombobox.h
  13. +0 −4 src/gui/auth/qgsauthconfigedit.cpp
  14. +0 −1 src/gui/auth/qgsauthconfigedit.h
  15. +0 −4 src/gui/auth/qgsauthconfigeditor.cpp
  16. +0 −1 src/gui/auth/qgsauthconfigeditor.h
  17. +0 −4 src/gui/auth/qgsauthconfigidedit.cpp
  18. +0 −1 src/gui/auth/qgsauthconfigidedit.h
  19. +0 −8 src/gui/auth/qgsauthconfigselect.cpp
  20. +0 −2 src/gui/auth/qgsauthconfigselect.h
  21. +0 −8 src/gui/auth/qgsautheditorwidgets.cpp
  22. +0 −4 src/gui/auth/qgsautheditorwidgets.h
  23. +0 −4 src/gui/auth/qgsauthidentitieseditor.cpp
  24. +0 −1 src/gui/auth/qgsauthidentitieseditor.h
  25. +0 −4 src/gui/auth/qgsauthimportcertdialog.cpp
  26. +0 −1 src/gui/auth/qgsauthimportcertdialog.h
  27. +0 −4 src/gui/auth/qgsauthimportidentitydialog.cpp
  28. +0 −1 src/gui/auth/qgsauthimportidentitydialog.h
  29. +0 −4 src/gui/auth/qgsauthmasterpassresetdialog.cpp
  30. +0 −1 src/gui/auth/qgsauthmasterpassresetdialog.h
  31. +0 −4 src/gui/auth/qgsauthserverseditor.cpp
  32. +0 −1 src/gui/auth/qgsauthserverseditor.h
  33. +0 −8 src/gui/auth/qgsauthsslconfigwidget.cpp
  34. +0 −2 src/gui/auth/qgsauthsslconfigwidget.h
  35. +0 −4 src/gui/auth/qgsauthsslerrorsdialog.cpp
  36. +0 −2 src/gui/auth/qgsauthsslerrorsdialog.h
  37. +0 −4 src/gui/auth/qgsauthsslimportdialog.cpp
  38. +0 −1 src/gui/auth/qgsauthsslimportdialog.h
  39. +0 −4 src/gui/auth/qgsauthtrustedcasdialog.cpp
  40. +0 −1 src/gui/auth/qgsauthtrustedcasdialog.h
  41. +0 −4 src/gui/editorwidgets/core/qgseditorwidgetfactory.cpp
  42. +1 −1 src/gui/editorwidgets/core/qgseditorwidgetfactory.h
  43. +0 −5 src/gui/effects/qgseffectstackpropertieswidget.cpp
  44. +0 −1 src/gui/effects/qgseffectstackpropertieswidget.h
  45. +0 −4 src/gui/qgisinterface.cpp
  46. +0 −2 src/gui/qgisinterface.h
  47. +0 −4 src/gui/qgsactionmenu.cpp
  48. +0 −2 src/gui/qgsactionmenu.h
  49. +0 −4 src/gui/qgsadvanceddigitizingcanvasitem.cpp
  50. +0 −1 src/gui/qgsadvanceddigitizingcanvasitem.h
  51. +0 −4 src/gui/qgsattributeforminterface.cpp
  52. +1 −1 src/gui/qgsattributeforminterface.h
  53. +0 −5 src/gui/qgsattributetypeloaddialog.cpp
  54. +0 −1 src/gui/qgsattributetypeloaddialog.h
  55. +0 −4 src/gui/qgsblendmodecombobox.cpp
  56. +0 −1 src/gui/qgsblendmodecombobox.h
  57. +0 −4 src/gui/qgsbrowsertreeview.cpp
  58. +0 −1 src/gui/qgsbrowsertreeview.h
  59. +0 −4 src/gui/qgsbusyindicatordialog.cpp
  60. +0 −1 src/gui/qgsbusyindicatordialog.h
  61. +0 −4 src/gui/qgscharacterselectdialog.cpp
  62. +0 −1 src/gui/qgscharacterselectdialog.h
  63. +0 −4 src/gui/qgscodeeditor.cpp
  64. +0 −1 src/gui/qgscodeeditor.h
  65. +0 −4 src/gui/qgscodeeditorcss.cpp
  66. +0 −1 src/gui/qgscodeeditorcss.h
  67. +0 −4 src/gui/qgscodeeditorhtml.cpp
  68. +0 −1 src/gui/qgscodeeditorhtml.h
  69. +0 −4 src/gui/qgscodeeditorpython.cpp
  70. +0 −1 src/gui/qgscodeeditorpython.h
  71. +0 −4 src/gui/qgscodeeditorsql.cpp
  72. +0 −1 src/gui/qgscodeeditorsql.h
  73. +0 −4 src/gui/qgscollapsiblegroupbox.cpp
  74. +0 −1 src/gui/qgscollapsiblegroupbox.h
  75. +0 −4 src/gui/qgscolorbutton.cpp
  76. +0 −2 src/gui/qgscolorbutton.h
  77. +0 −5 src/gui/qgscolordialog.cpp
  78. +0 −2 src/gui/qgscolordialog.h
  79. +0 −10 src/gui/qgscolorschemelist.cpp
  80. +0 −4 src/gui/qgscolorschemelist.h
  81. +0 −10 src/gui/qgscolorswatchgrid.cpp
  82. +0 −4 src/gui/qgscolorswatchgrid.h
  83. +0 −29 src/gui/qgscolorwidgets.cpp
  84. +0 −12 src/gui/qgscolorwidgets.h
  85. +0 −4 src/gui/qgscredentialdialog.cpp
  86. +0 −1 src/gui/qgscredentialdialog.h
  87. +0 −4 src/gui/qgscustomdrophandler.cpp
  88. +1 −1 src/gui/qgscustomdrophandler.h
  89. +0 −4 src/gui/qgsdetaileditemwidget.cpp
  90. +0 −1 src/gui/qgsdetaileditemwidget.h
  91. +0 −4 src/gui/qgsdialog.cpp
  92. +0 −1 src/gui/qgsdialog.h
  93. +0 −7 src/gui/qgsencodingfiledialog.cpp
  94. +0 −1 src/gui/qgsencodingfiledialog.h
  95. +0 −4 src/gui/qgserrordialog.cpp
  96. +0 −1 src/gui/qgserrordialog.h
  97. +0 −4 src/gui/qgsfilewidget.cpp
  98. +0 −2 src/gui/qgsfilewidget.h
  99. +0 −4 src/gui/qgslegendfilterbutton.cpp
  100. +0 −1 src/gui/qgslegendfilterbutton.h
  101. +0 −5 src/gui/qgsludialog.cpp
  102. +0 −1 src/gui/qgsludialog.h
  103. +0 −4 src/gui/qgsmapcanvasmap.cpp
  104. +0 −2 src/gui/qgsmapcanvasmap.h
  105. +0 −5 src/gui/qgsmaplayeractionregistry.cpp
  106. +0 −2 src/gui/qgsmaplayeractionregistry.h
  107. +0 −4 src/gui/qgsmaplayerconfigwidgetfactory.cpp
  108. +1 −2 src/gui/qgsmaplayerconfigwidgetfactory.h
  109. +0 −4 src/gui/qgsmapoverviewcanvas.cpp
  110. +0 −2 src/gui/qgsmapoverviewcanvas.h
  111. +0 −5 src/gui/qgsmaptip.cpp
  112. +0 −2 src/gui/qgsmaptip.h
  113. +0 −4 src/gui/qgsmaptooladvanceddigitizing.cpp
  114. +0 −2 src/gui/qgsmaptooladvanceddigitizing.h
  115. +0 −5 src/gui/qgsmaptooledit.cpp
  116. +0 −1 src/gui/qgsmaptooledit.h
  117. +0 −4 src/gui/qgsmaptoolidentifyfeature.cpp
  118. +0 −2 src/gui/qgsmaptoolidentifyfeature.h
  119. +0 −4 src/gui/qgsmessagebar.cpp
  120. +0 −1 src/gui/qgsmessagebar.h
  121. +0 −4 src/gui/qgsmessagebaritem.cpp
  122. +0 −2 src/gui/qgsmessagebaritem.h
  123. +0 −4 src/gui/qgsmessagelogviewer.cpp
  124. +0 −1 src/gui/qgsmessagelogviewer.h
  125. +0 −4 src/gui/qgsnewhttpconnection.cpp
  126. +0 −1 src/gui/qgsnewhttpconnection.h
  127. +0 −5 src/gui/qgspluginmanagerinterface.cpp
  128. +0 −2 src/gui/qgspluginmanagerinterface.h
  129. +0 −4 src/gui/qgspresetcolorrampdialog.cpp
  130. +0 −2 src/gui/qgspresetcolorrampdialog.h
  131. +0 −5 src/gui/qgsprevieweffect.cpp
  132. +0 −1 src/gui/qgsprevieweffect.h
  133. +0 −4 src/gui/qgsrasterformatsaveoptionswidget.cpp
  134. +0 −1 src/gui/qgsrasterformatsaveoptionswidget.h
  135. +0 −4 src/gui/qgsrasterlayersaveasdialog.cpp
  136. +0 −1 src/gui/qgsrasterlayersaveasdialog.h
  137. +0 −5 src/gui/qgsrasterpyramidsoptionswidget.cpp
  138. +0 −1 src/gui/qgsrasterpyramidsoptionswidget.h
  139. +0 −4 src/gui/qgsrubberband.cpp
  140. +0 −1 src/gui/qgsrubberband.h
  141. +0 −4 src/gui/qgsscalecombobox.cpp
  142. +0 −1 src/gui/qgsscalecombobox.h
  143. +0 −4 src/gui/qgsscalerangewidget.cpp
  144. +0 −1 src/gui/qgsscalerangewidget.h
  145. +0 −5 src/gui/qgsscalewidget.cpp
  146. +0 −2 src/gui/qgsscalewidget.h
  147. +0 −5 src/gui/qgssearchquerybuilder.cpp
  148. +0 −2 src/gui/qgssearchquerybuilder.h
  149. +0 −8 src/gui/qgssqlcomposerdialog.cpp
  150. +2 −2 src/gui/qgssqlcomposerdialog.h
  151. +0 −5 src/gui/qgssvgannotationitem.cpp
  152. +0 −1 src/gui/qgssvgannotationitem.h
  153. +0 −4 src/gui/qgsuserinputdockwidget.cpp
  154. +0 −1 src/gui/qgsuserinputdockwidget.h
  155. +0 −5 src/gui/raster/qgshillshaderendererwidget.cpp
  156. +0 −2 src/gui/raster/qgshillshaderendererwidget.h
  157. +0 −4 src/gui/raster/qgsmultibandcolorrendererwidget.cpp
  158. +0 −1 src/gui/raster/qgsmultibandcolorrendererwidget.h
  159. +0 −5 src/gui/raster/qgspalettedrendererwidget.cpp
  160. +0 −1 src/gui/raster/qgspalettedrendererwidget.h
  161. +0 −5 src/gui/raster/qgsrasterhistogramwidget.cpp
  162. +0 −1 src/gui/raster/qgsrasterhistogramwidget.h
  163. +0 −4 src/gui/raster/qgsrasterminmaxwidget.cpp
  164. +0 −1 src/gui/raster/qgsrasterminmaxwidget.h
  165. +0 −4 src/gui/raster/qgsrastertransparencywidget.cpp
  166. +0 −1 src/gui/raster/qgsrastertransparencywidget.h
  167. +0 −5 src/gui/raster/qgsrendererrasterpropertieswidget.cpp
  168. +1 −2 src/gui/raster/qgsrendererrasterpropertieswidget.h
  169. +1 −5 src/gui/raster/qgssinglebandgrayrendererwidget.cpp
  170. +0 −1 src/gui/raster/qgssinglebandgrayrendererwidget.h
  171. +0 −4 src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
  172. +0 −1 src/gui/raster/qgssinglebandpseudocolorrendererwidget.h
  173. +0 −4 src/gui/symbology-ng/qgscptcitycolorrampdialog.cpp
  174. +0 −1 src/gui/symbology-ng/qgscptcitycolorrampdialog.h
  175. +0 −5 src/gui/symbology-ng/qgsdashspacedialog.cpp
  176. +0 −1 src/gui/symbology-ng/qgsdashspacedialog.h
  177. +0 −5 src/gui/symbology-ng/qgsgraduatedhistogramwidget.cpp
  178. +0 −1 src/gui/symbology-ng/qgsgraduatedhistogramwidget.h
  179. +0 −5 src/gui/symbology-ng/qgsrulebasedrendererwidget.cpp
  180. +0 −1 src/gui/symbology-ng/qgsrulebasedrendererwidget.h
  181. +0 −4 src/gui/symbology-ng/qgssmartgroupeditordialog.cpp
  182. +0 −1 src/gui/symbology-ng/qgssmartgroupeditordialog.h
  183. +0 −6 src/gui/symbology-ng/qgsstylegroupselectiondialog.cpp
  184. +0 −1 src/gui/symbology-ng/qgsstylegroupselectiondialog.h
  185. +0 −2 src/gui/symbology-ng/qgsstylesavedialog.cpp
  186. +0 −2 src/gui/symbology-ng/qgsstylesavedialog.h
  187. +0 −4 src/gui/symbology-ng/qgssymbolselectordialog.cpp
  188. +0 −1 src/gui/symbology-ng/qgssymbolselectordialog.h
  189. +0 −4 src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.cpp
  190. +0 −1 src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h
  191. +0 −5 src/server/qgsaccesscontrolfilter.cpp
  192. +1 −1 src/server/qgsaccesscontrolfilter.h
  193. +0 −4 src/server/qgscapabilitiescache.cpp
  194. +0 −1 src/server/qgscapabilitiescache.h
  195. +0 −4 src/server/qgsconfigcache.cpp
  196. +0 −1 src/server/qgsconfigcache.h
  197. +0 −5 src/server/qgshostedrdsbuilder.cpp
  198. +0 −1 src/server/qgshostedrdsbuilder.h
  199. +0 −5 src/server/qgshostedvdsbuilder.cpp
  200. +0 −1 src/server/qgshostedvdsbuilder.h
  201. +0 −5 src/server/qgsinterpolationlayerbuilder.cpp
  202. +1 −1 src/server/qgsinterpolationlayerbuilder.h
  203. +0 −5 src/server/qgsmslayerbuilder.cpp
  204. +1 −1 src/server/qgsmslayerbuilder.h
  205. +0 −4 src/server/qgspostrequesthandler.cpp
  206. +0 −1 src/server/qgspostrequesthandler.h
  207. +0 −4 src/server/qgsremotedatasourcebuilder.cpp
  208. +0 −1 src/server/qgsremotedatasourcebuilder.h
  209. +0 −5 src/server/qgsremoteowsbuilder.cpp
  210. +0 −1 src/server/qgsremoteowsbuilder.h
  211. +1 −1 src/server/qgsrequesthandler.h
  212. +0 −5 src/server/qgssentdatasourcebuilder.cpp
  213. +0 −1 src/server/qgssentdatasourcebuilder.h
  214. +0 −6 src/server/qgsserver.cpp
  215. +0 −1 src/server/qgsserver.h
  216. +0 −5 src/server/qgsserverfilter.cpp
  217. +2 −1 src/server/qgsserverfilter.h
  218. +0 −1 src/server/qgsserverinterface.h
  219. +0 −5 src/server/qgsserverprojectparser.cpp
  220. +0 −1 src/server/qgsserverprojectparser.h
  221. +0 −3 src/server/qgsserverstreamingdevice.cpp
  222. +0 −1 src/server/qgsserverstreamingdevice.h
  223. +0 −4 src/server/qgswcsserver.cpp
  224. +0 −1 src/server/qgswcsserver.h
  225. +0 −3 src/server/qgswfsserver.cpp
  226. +0 −1 src/server/qgswfsserver.h
  227. +0 −5 src/server/qgswmsconfigparser.cpp
  228. +1 −1 src/server/qgswmsconfigparser.h
  229. +0 −4 src/server/qgswmsserver.cpp
  230. +0 −1 src/server/qgswmsserver.h
@@ -71,10 +71,6 @@ QgisAppInterface::QgisAppInterface( QgisApp * _qgis )
this, SIGNAL( layerSavedAs( QgsMapLayer*, QString ) ) );
}

QgisAppInterface::~QgisAppInterface()
{
}

QgsPluginManagerInterface* QgisAppInterface::pluginManagerInterface()
{
return &pluginManagerIface;
@@ -43,7 +43,6 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
* @param qgis Pointer to the QgisApp object
*/
QgisAppInterface( QgisApp *qgisapp );
~QgisAppInterface();

QgisAppInterface( QgisAppInterface const & ) = delete;
QgisAppInterface & operator=( QgisAppInterface const & ) = delete;
@@ -120,8 +120,6 @@ QgsRendererAbstractMetadata* QgsRendererRegistry::rendererMetadata( const QStrin
return mRenderers.value( rendererName );
}

QgsRendererMetadata::~QgsRendererMetadata() {}

QStringList QgsRendererRegistry::renderersList( QgsRendererAbstractMetadata::LayerTypes layerTypes ) const
{
QStringList renderers;
@@ -137,7 +137,7 @@ class CORE_EXPORT QgsRendererMetadata : public QgsRendererAbstractMetadata
, mLayerTypes( layerTypes )
{}

virtual ~QgsRendererMetadata();
virtual ~QgsRendererMetadata() = default;

virtual QgsFeatureRenderer* createRenderer( QDomElement& elem ) override { return mCreateFunc ? mCreateFunc( elem ) : nullptr; }
virtual QgsRendererWidget* createRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer ) override
@@ -99,10 +99,6 @@ QgsAuthAuthoritiesEditor::QgsAuthAuthoritiesEditor( QWidget *parent )
}
}

QgsAuthAuthoritiesEditor::~QgsAuthAuthoritiesEditor()
{
}

static void setItemBold_( QTreeWidgetItem* item )
{
item->setFirstColumnSpanned( true );
@@ -42,7 +42,6 @@ class GUI_EXPORT QgsAuthAuthoritiesEditor : public QWidget, private Ui::QgsAuthA
* @param parent Parent widget
*/
explicit QgsAuthAuthoritiesEditor( QWidget *parent = nullptr );
~QgsAuthAuthoritiesEditor();

private slots:
void populateCaCertsView();
@@ -112,10 +112,6 @@ QgsAuthCertInfo::QgsAuthCertInfo( const QSslCertificate& cert,
}
}

QgsAuthCertInfo::~QgsAuthCertInfo()
{
}

void QgsAuthCertInfo::setupError( const QString &msg )
{
lblError->setVisible( true );
@@ -939,6 +935,3 @@ QgsAuthCertInfoDialog::QgsAuthCertInfoDialog( const QSslCertificate& cert,
setLayout( layout );
}

QgsAuthCertInfoDialog::~QgsAuthCertInfoDialog()
{
}
@@ -42,7 +42,6 @@ class GUI_EXPORT QgsAuthCertInfo : public QWidget, private Ui::QgsAuthCertInfo
bool manageCertTrust = false,
QWidget *parent = nullptr,
const QList<QSslCertificate>& connectionCAs = QList<QSslCertificate>() );
~QgsAuthCertInfo();

bool trustCacheRebuilt() { return mTrustCacheRebuilt; }

@@ -154,7 +153,6 @@ class GUI_EXPORT QgsAuthCertInfoDialog : public QDialog
bool manageCertTrust,
QWidget *parent = nullptr,
const QList<QSslCertificate>& connectionCAs = QList<QSslCertificate>() );
~QgsAuthCertInfoDialog();

//! Get access to embedded info widget
QgsAuthCertInfo *certInfoWidget() { return mCertInfoWdgt; }
@@ -26,11 +26,6 @@ QgsAuthCertEditors::QgsAuthCertEditors( QWidget *parent )
setupUi( this );
}

QgsAuthCertEditors::~QgsAuthCertEditors()
{
}



QgsAuthCertManager::QgsAuthCertManager( QWidget *parent )
: QDialog( parent )
@@ -50,7 +45,3 @@ QgsAuthCertManager::QgsAuthCertManager( QWidget *parent )

setLayout( layout );
}

QgsAuthCertManager::~QgsAuthCertManager()
{
}
@@ -38,7 +38,6 @@ class GUI_EXPORT QgsAuthCertEditors : public QWidget, private Ui::QgsAuthCertMan
*/
explicit QgsAuthCertEditors( QWidget *parent = nullptr );

~QgsAuthCertEditors();
};


@@ -59,8 +58,6 @@ class GUI_EXPORT QgsAuthCertManager : public QDialog
*/
explicit QgsAuthCertManager( QWidget *parent = nullptr );

~QgsAuthCertManager();

//! Get access to embedded editors widget
QgsAuthCertEditors *certEditorsWidget() { return mCertEditors; }

@@ -58,10 +58,6 @@ QgsAuthCertTrustPolicyComboBox::QgsAuthCertTrustPolicyComboBox( QWidget *parent,
setDefaultTrustPolicy( defaultpolicy );
}

QgsAuthCertTrustPolicyComboBox::~QgsAuthCertTrustPolicyComboBox()
{
}

QgsAuthCertUtils::CertTrustPolicy QgsAuthCertTrustPolicyComboBox::trustPolicy()
{
return ( QgsAuthCertUtils::CertTrustPolicy )itemData( currentIndex() ).toInt();
@@ -39,7 +39,6 @@ class GUI_EXPORT QgsAuthCertTrustPolicyComboBox : public QComboBox
QWidget *parent = nullptr,
QgsAuthCertUtils::CertTrustPolicy policy = QgsAuthCertUtils::DefaultTrust,
QgsAuthCertUtils::CertTrustPolicy defaultpolicy = QgsAuthCertUtils::DefaultTrust );
~QgsAuthCertTrustPolicyComboBox();

//! Get currently set trust policy
QgsAuthCertUtils::CertTrustPolicy trustPolicy();
@@ -92,10 +92,6 @@ QgsAuthConfigEdit::QgsAuthConfigEdit( QWidget *parent , const QString& authcfg ,
}
}

QgsAuthConfigEdit::~QgsAuthConfigEdit()
{
}

void QgsAuthConfigEdit::populateAuthMethods()
{
QStringList authMethodKeys = QgsAuthManager::instance()->authMethodsKeys( mDataProvider );
@@ -50,7 +50,6 @@ class GUI_EXPORT QgsAuthConfigEdit : public QDialog, private Ui::QgsAuthConfigEd
*/
explicit QgsAuthConfigEdit( QWidget *parent = nullptr, const QString& authcfg = QString(),
const QString &dataprovider = QString() );
~QgsAuthConfigEdit();

//! Authentication config id, updated with generated id when a new config is saved to auth database
const QString configId() const { return mAuthCfg; }
@@ -126,10 +126,6 @@ QgsAuthConfigEditor::QgsAuthConfigEditor( QWidget *parent, bool showUtilities, b
}
}

QgsAuthConfigEditor::~QgsAuthConfigEditor()
{
}

void QgsAuthConfigEditor::setMasterPassword()
{
QgsAuthGuiUtils::setMasterPassword( messageBar(), messageTimeout() );
@@ -41,7 +41,6 @@ class GUI_EXPORT QgsAuthConfigEditor : public QWidget, private Ui::QgsAuthConfig
* @param relayMessages Whether to relay auth manager messages to internal message bar
*/
explicit QgsAuthConfigEditor( QWidget *parent = nullptr, bool showUtilities = true, bool relayMessages = true );
~QgsAuthConfigEditor();

//! Hide the widget's title, e.g. when embedding
void toggleTitleVisibility( bool visible );
@@ -37,10 +37,6 @@ QgsAuthConfigIdEdit::QgsAuthConfigIdEdit( QWidget *parent, const QString &authcf
updateValidityStyle( validate() );
}

QgsAuthConfigIdEdit::~QgsAuthConfigIdEdit()
{
}

const QString QgsAuthConfigIdEdit::configId()
{
if ( validate() )
@@ -39,7 +39,6 @@ class GUI_EXPORT QgsAuthConfigIdEdit : public QWidget, private Ui::QgsAuthConfig
* @param allowEmpty Whether to allow no ID to be set, even when editing, e.g. Add config functions
*/
explicit QgsAuthConfigIdEdit( QWidget *parent = nullptr, const QString &authcfg = QString(), bool allowEmpty = true );
~QgsAuthConfigIdEdit();

//! The authentication configuration ID, if valid, otherwise null QString
QString const configId();
@@ -58,10 +58,6 @@ QgsAuthConfigSelect::QgsAuthConfigSelect( QWidget *parent, const QString &datapr
}
}

QgsAuthConfigSelect::~QgsAuthConfigSelect()
{
}

void QgsAuthConfigSelect::setConfigId( const QString& authcfg )
{
if ( mDisabled && mAuthNotify )
@@ -288,10 +284,6 @@ QgsAuthConfigUriEdit::QgsAuthConfigUriEdit( QWidget *parent, const QString &data
}
}

QgsAuthConfigUriEdit::~QgsAuthConfigUriEdit()
{
}

void QgsAuthConfigUriEdit::setDataSourceUri( const QString &datauri )
{
if ( mDisabled )
@@ -39,7 +39,6 @@ class GUI_EXPORT QgsAuthConfigSelect : public QWidget, private Ui::QgsAuthConfig
* @param dataprovider The key of the calling layer provider, if applicable
*/
explicit QgsAuthConfigSelect( QWidget *parent = nullptr, const QString &dataprovider = QString() );
~QgsAuthConfigSelect();

//! Set the authentication config id for the resource
void setConfigId( const QString& authcfg );
@@ -117,7 +116,6 @@ class GUI_EXPORT QgsAuthConfigUriEdit : public QDialog, private Ui::QgsAuthConfi
explicit QgsAuthConfigUriEdit( QWidget *parent = nullptr,
const QString &datauri = QString(),
const QString &dataprovider = QString() );
~QgsAuthConfigUriEdit();

//! Set the data source URI to parse
void setDataSourceUri( const QString &datauri );
@@ -50,10 +50,6 @@ QgsAuthMethodPlugins::QgsAuthMethodPlugins( QWidget *parent )
}
}

QgsAuthMethodPlugins::~QgsAuthMethodPlugins()
{
}

void QgsAuthMethodPlugins::setupTable()
{
tblAuthPlugins->setColumnCount( 3 );
@@ -125,10 +121,6 @@ QgsAuthEditorWidgets::QgsAuthEditorWidgets( QWidget *parent )
}
}

QgsAuthEditorWidgets::~QgsAuthEditorWidgets()
{
}

void QgsAuthEditorWidgets::on_btnCertManager_clicked()
{
QgsAuthCertManager *dlg = new QgsAuthCertManager( this );
@@ -36,8 +36,6 @@ class GUI_EXPORT QgsAuthMethodPlugins : public QDialog, private Ui::QgsAuthMetho
*/
explicit QgsAuthMethodPlugins( QWidget *parent = nullptr );

~QgsAuthMethodPlugins();

private slots:
void populateTable();

@@ -64,8 +62,6 @@ class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEdito
*/
explicit QgsAuthEditorWidgets( QWidget *parent = nullptr );

~QgsAuthEditorWidgets();

private slots:
void on_btnCertManager_clicked();
void on_btnAuthPlugins_clicked();
@@ -75,10 +75,6 @@ QgsAuthIdentitiesEditor::QgsAuthIdentitiesEditor( QWidget *parent )
}
}

QgsAuthIdentitiesEditor::~QgsAuthIdentitiesEditor()
{
}

static void setItemBold_( QTreeWidgetItem* item )
{
item->setFirstColumnSpanned( true );
@@ -39,7 +39,6 @@ class GUI_EXPORT QgsAuthIdentitiesEditor : public QWidget, private Ui::QgsAuthId
* @param parent Parent widget
*/
explicit QgsAuthIdentitiesEditor( QWidget *parent = nullptr );
~QgsAuthIdentitiesEditor();

private slots:
void populateIdentitiesView();
@@ -85,10 +85,6 @@ QgsAuthImportCertDialog::QgsAuthImportCertDialog( QWidget *parent ,
}
}

QgsAuthImportCertDialog::~QgsAuthImportCertDialog()
{
}

const QList<QSslCertificate> QgsAuthImportCertDialog::certificatesToImport()
{
if ( mDisabled )
@@ -56,7 +56,6 @@ class GUI_EXPORT QgsAuthImportCertDialog : public QDialog, private Ui::QgsAuthIm
explicit QgsAuthImportCertDialog( QWidget *parent = nullptr,
QgsAuthImportCertDialog::CertFilter filter = NoFilter,
QgsAuthImportCertDialog::CertInput input = AllInputs );
~QgsAuthImportCertDialog();

//! Get list of certificate objects to import
const QList<QSslCertificate> certificatesToImport();
@@ -78,10 +78,6 @@ QgsAuthImportIdentityDialog::QgsAuthImportIdentityDialog( QgsAuthImportIdentityD
}
}

QgsAuthImportIdentityDialog::~QgsAuthImportIdentityDialog()
{
}

QgsAuthImportIdentityDialog::IdentityType QgsAuthImportIdentityDialog::identityType()
{
if ( mDisabled )
@@ -61,7 +61,6 @@ class GUI_EXPORT QgsAuthImportIdentityDialog : public QDialog, private Ui::QgsAu
*/
explicit QgsAuthImportIdentityDialog( QgsAuthImportIdentityDialog::IdentityType identitytype,
QWidget *parent = nullptr );
~QgsAuthImportIdentityDialog();

//! Get identity type
QgsAuthImportIdentityDialog::IdentityType identityType();
@@ -44,10 +44,6 @@ QgsMasterPasswordResetDialog::QgsMasterPasswordResetDialog( QWidget *parent )
}
}

QgsMasterPasswordResetDialog::~QgsMasterPasswordResetDialog()
{
}

bool QgsMasterPasswordResetDialog::requestMasterPasswordReset( QString *newpass, QString *oldpass, bool *keepbackup )
{
if ( !QgsAuthManager::instance()->isDisabled() )
@@ -37,7 +37,6 @@ class GUI_EXPORT QgsMasterPasswordResetDialog : public QDialog, private Ui::QgsM

public:
explicit QgsMasterPasswordResetDialog( QWidget *parent = nullptr );
~QgsMasterPasswordResetDialog();

bool requestMasterPasswordReset( QString *newpass, QString *oldpass, bool *keepbackup );

@@ -73,10 +73,6 @@ QgsAuthServersEditor::QgsAuthServersEditor( QWidget *parent )
}
}

QgsAuthServersEditor::~QgsAuthServersEditor()
{
}

static void setItemBold_( QTreeWidgetItem* item )
{
item->setFirstColumnSpanned( true );
@@ -38,7 +38,6 @@ class GUI_EXPORT QgsAuthServersEditor : public QWidget, private Ui::QgsAuthServe
* @param parent Parent Widget
*/
explicit QgsAuthServersEditor( QWidget *parent = nullptr );
~QgsAuthServersEditor();

private slots:
void populateSslConfigsView();
@@ -88,10 +88,6 @@ QgsAuthSslConfigWidget::QgsAuthSslConfigWidget( QWidget *parent,
}
}

QgsAuthSslConfigWidget::~QgsAuthSslConfigWidget()
{
}

QGroupBox *QgsAuthSslConfigWidget::certificateGroupBox()
{
if ( mDisabled )
@@ -621,10 +617,6 @@ QgsAuthSslConfigDialog::QgsAuthSslConfigDialog( QWidget *parent , const QSslCert
mSaveButton->setEnabled( mSslConfigWdgt->readyToSave() );
}

QgsAuthSslConfigDialog::~QgsAuthSslConfigDialog()
{
}

void QgsAuthSslConfigDialog::accept()
{
mSslConfigWdgt->saveSslCertConfig();

0 comments on commit ef0131d

Please sign in to comment.
You can’t perform that action at this time.