Skip to content
Permalink
Browse files

qgis_bench json log fix; QGIS2 settings

  • Loading branch information
blazek committed Apr 8, 2013
1 parent 082c6ba commit 34adbe7f56f6fb7b59d114de7ab51bbda70ed016
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/bench/main.cpp
  2. +1 −1 tests/bench/qgsbench.cpp
@@ -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() );

@@ -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:

0 comments on commit 34adbe7

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