Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
  • Loading branch information
domi4484 and pblottiere committed May 11, 2021
1 parent 4ac0508 commit 97b0c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/codeeditors/qgscodeeditorjson.h
Expand Up @@ -27,7 +27,7 @@ SIP_IF_MODULE( HAVE_QSCI_SIP )
* \ingroup gui
* \brief A JSON editor based on QScintilla2. Adds syntax highlighting and
* code autocompletion.
* \since QGIS 3.14
* \since QGIS 3.20
*/
class GUI_EXPORT QgsCodeEditorJson : public QgsCodeEditor
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsjsoneditwidget.cpp
Expand Up @@ -142,7 +142,7 @@ void QgsJsonEditWidget::refreshTreeView( const QJsonDocument &jsonDocument )
const QStringList keys = jsonDocument.object().keys();
for ( const QString &key : keys )
{
QJsonValue jsonValue = jsonDocument.object().value( key );
const QJsonValue jsonValue = jsonDocument.object().value( key );
QTreeWidgetItem *treeWidgetItem = new QTreeWidgetItem( mTreeWidget, QStringList() << key );
refreshTreeViewItemValue( jsonValue, treeWidgetItem );
mTreeWidget->addTopLevelItem( treeWidgetItem );
Expand Down

0 comments on commit 97b0c5d

Please sign in to comment.