Skip to content

Commit 34adbe7

Browse files
committedApr 8, 2013
qgis_bench json log fix; QGIS2 settings
1 parent 082c6ba commit 34adbe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎tests/bench/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ int main( int argc, char *argv[] )
363363
// Set up the QSettings environment must be done after qapp is created
364364
QgsApplication::setOrganizationName( "QuantumGIS" );
365365
QgsApplication::setOrganizationDomain( "qgis.org" );
366-
QgsApplication::setApplicationName( "QGIS" );
366+
QgsApplication::setApplicationName( "QGIS2" );
367367

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

‎tests/bench/qgsbench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ QString QgsBench::serialize( QMap<QString, QVariant> theMap, int level )
299299
list.append( space2 + "\"" + i.key() + "\": " + QString( "%1" ).arg( i.value().toDouble(), 0, 'f', 3 ) );
300300
break;
301301
case QMetaType::QString:
302-
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString() + "\"" );
302+
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString().replace("\\","\\\\").replace("\"","\\\"") + "\"" );
303303
break;
304304
//case QMetaType::QMap: QMap is not in QMetaType
305305
default:

0 commit comments

Comments
 (0)
Please sign in to comment.