[Cppunit-cvs] cppunit2/src/jsontestrunner main.cpp,1.1,1.2
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2006-09-01 19:48:14
|
Update of /cvsroot/cppunit/cppunit2/src/jsontestrunner In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22940/src/jsontestrunner Modified Files: main.cpp Log Message: - synchronized with lastest jsoncpp. Index: main.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/jsontestrunner/main.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.cpp 5 Jun 2006 13:22:58 -0000 1.1 --- main.cpp 1 Sep 2006 19:48:11 -0000 1.2 *************** *** 1,4 **** #include <json/json.h> ! //#include <stdexcept> #include <stdio.h> --- 1,4 ---- #include <json/json.h> ! #include <algorithm> // sort #include <stdio.h> *************** *** 66,69 **** --- 66,70 ---- fprintf( fout, "%s={}\n", path.c_str() ); Json::Value::Members members( value.getMemberNames() ); + std::sort( members.begin(), members.end() ); std::string suffix = *(path.end()-1) == '.' ? "" : "."; for ( Json::Value::Members::iterator it = members.begin(); |