Skip to content

Commit

Permalink
use String::isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
stev-0 committed Jan 7, 2020
1 parent cda184d commit 563c333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgstexteditwrapper.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 563c333

Please sign in to comment.