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 2004/02/05 21:38:14 UTC

cvs commit: xml-xalan/c/Tests/Threads ThreadTest.cpp

dbertoni    2004/02/05 12:38:14

  Modified:    c/Tests/Threads ThreadTest.cpp
  Log:
  Generate output file name more efficiently.
  
  Revision  Changes    Path
  1.34      +8 -8      xml-xalan/c/Tests/Threads/ThreadTest.cpp
  
  Index: ThreadTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Threads/ThreadTest.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ThreadTest.cpp	6 Jan 2004 02:41:26 -0000	1.33
  +++ ThreadTest.cpp	5 Feb 2004 20:38:14 -0000	1.34
  @@ -327,10 +327,10 @@
   		// from same directory as the input files.
   
   		// Generate the output file name.
  -		const XalanDOMString	theOutputFile(
  -				XalanDOMString("birds") +
  -				LongToDOMString(theInfo->m_threadNumber) +
  -				XalanDOMString(".out"));
  +		XalanDOMString	theOutputFile(XALAN_STATIC_UCODE_STRING("birds"));
  +
  +		LongToDOMString(theInfo->m_threadNumber, theOutputFile);
  +        theOutputFile.append(".out");
   
   		// Create a transformer...
   		XalanTransformer	theTransformer;
  @@ -391,10 +391,10 @@
   		// from same directory as the input files.
   
   		// Generate the output file name.
  -		const XalanDOMString	theOutputFile(
  -				XalanDOMString("birds") +
  -				LongToDOMString(theInfo->m_threadNumber) +
  -				XalanDOMString(".out"));
  +		XalanDOMString	theOutputFile(XALAN_STATIC_UCODE_STRING("birds"));
  +
  +		LongToDOMString(theInfo->m_threadNumber, theOutputFile);
  +        theOutputFile.append(".out");
   
   		// Create a transformer...
   		XalanTransformer	theTransformer;
  
  
  

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