From 4c992c4077f61c05eefb1c20c2038867aaeb7337 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 17 Jan 2023 09:52:58 +1000 Subject: [PATCH] Apply suggestions from code review --- .../auto_generated/attributetable/qgsattributetablemodel.sip.in | 2 +- src/gui/attributetable/qgsattributetablemodel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/gui/auto_generated/attributetable/qgsattributetablemodel.sip.in b/python/gui/auto_generated/attributetable/qgsattributetablemodel.sip.in index 1c204d104ee..88c8824f58c 100644 --- a/python/gui/auto_generated/attributetable/qgsattributetablemodel.sip.in +++ b/python/gui/auto_generated/attributetable/qgsattributetablemodel.sip.in @@ -257,7 +257,7 @@ constraint is not met. .. versionadded:: 3.30 %End - void setShowValidityState( const bool &show ); + void setShowValidityState( bool show ); %Docstring Sets whether the attribute table will add a visual feedback to cells when an attribute constraint is not met. diff --git a/src/gui/attributetable/qgsattributetablemodel.h b/src/gui/attributetable/qgsattributetablemodel.h index 3541ca4667d..27ead87b088 100644 --- a/src/gui/attributetable/qgsattributetablemodel.h +++ b/src/gui/attributetable/qgsattributetablemodel.h @@ -268,7 +268,7 @@ class GUI_EXPORT QgsAttributeTableModel: public QAbstractTableModel * is not met. * \since QGIS 3.30 */ - void setShowValidityState( const bool &show ) { mShowValidityState = show; } + void setShowValidityState( bool show ) { mShowValidityState = show; } public slots: