You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/05/22 18:02:10 UTC

cvs commit: xml-xalan/c/Tests/Performance perf.cpp

dbertoni    02/05/22 09:02:10

  Modified:    c/Tests/Performance perf.cpp
  Log:
  Make sure variable is initialized before use.
  
  Revision  Changes    Path
  1.31      +2 -2      xml-xalan/c/Tests/Performance/perf.cpp
  
  Index: perf.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Performance/perf.cpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- perf.cpp	12 Apr 2002 06:47:34 -0000	1.30
  +++ perf.cpp	22 May 2002 16:02:09 -0000	1.31
  @@ -286,7 +286,6 @@
   
   
   	const XalanDOMString	processorType(XALAN_STATIC_UCODE_STRING("XalanC"));
  -	long iterCount;			// Default number of iterations
   	bool skip = true;		// Default will skip long tests
   	bool setGold = false;
   
  @@ -322,6 +321,8 @@
   				// Get the list of Directories that are below perf and iterate through them
   				const FileNameVectorType dirs = h.getDirectoryNames(h.args.base);
   
  +				const long 	iterCount = h.args.iters;
  +
   				for(FileNameVectorType::size_type	j = 0; j < dirs.size(); j++)
   				{
   					// Run specific sub of files from given directory
  @@ -481,7 +482,6 @@
   						// These are done 3 different ways.
   						// FIRST: Parsed XSL Stylesheet and Parsed XML Source.
   
  -						iterCount = h.args.iters;
   						accmTime = 0;
   						for(int j = 0; j < iterCount; ++j)
   						{	
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org