Skip to content

Commit

Permalink
qgis_bench json log fix; QGIS2 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Apr 8, 2013
1 parent 082c6ba commit 34adbe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/bench/main.cpp
Expand Up @@ -363,7 +363,7 @@ int main( int argc, char *argv[] )
// Set up the QSettings environment must be done after qapp is created
QgsApplication::setOrganizationName( "QuantumGIS" );
QgsApplication::setOrganizationDomain( "qgis.org" );
QgsApplication::setApplicationName( "QGIS" );
QgsApplication::setApplicationName( "QGIS2" );

QgsProviderRegistry::instance( QgsApplication::pluginPath() );

Expand Down
2 changes: 1 addition & 1 deletion tests/bench/qgsbench.cpp
Expand Up @@ -299,7 +299,7 @@ QString QgsBench::serialize( QMap<QString, QVariant> theMap, int level )
list.append( space2 + "\"" + i.key() + "\": " + QString( "%1" ).arg( i.value().toDouble(), 0, 'f', 3 ) );
break;
case QMetaType::QString:
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString() + "\"" );
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString().replace("\\","\\\\").replace("\"","\\\"") + "\"" );
break;
//case QMetaType::QMap: QMap is not in QMetaType
default:
Expand Down

0 comments on commit 34adbe7

Please sign in to comment.