Skip to content
Permalink
Browse files

use String::isEmpty()

  • Loading branch information
stev-0 committed Jan 7, 2020
1 parent cda184d commit 563c333319324febf4d2d0609ba0e61196b2bb9e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgstexteditwrapper.cpp
@@ -82,7 +82,7 @@ QVariant QgsTextEditWrapper::value() const
else if ( field().type() == QVariant::Map )
{
// replace empty string (invalid) with quoted empty string
if ( v == "" )
if ( v.isEmpty() )
{
QVariant qjson = QgsJsonUtils::parseJson( std::string( "\"\"" ) );
mInvalidJSON = false;

0 comments on commit 563c333

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