[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/kdetestscripts/compilertests/sprintf
From:       Benjamin Meyer <ben () meyerhome ! net>
Date:       2005-07-29 15:54:40
Message-ID: 1122652480.066029.11411.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 440028 by bmeyer:

Fix test for base 10


 M  +1 -1      main.cpp  


--- trunk/playground/base/kdetestscripts/compilertests/sprintf/main.cpp #440027:440028
@@ -36,7 +36,7 @@
 		
 	gettimeofday(&tv1, NULL);
   	for(int i=0; i< LOOP; i++)
-		QString("%1").arg((double)6, 2, '0');
+		QString("%1").arg((int)6, 2, 10, QLatin1Char('0'));
 
 	gettimeofday(&tv2, NULL);
 	qDebug("arg()     post:  %d", (tv2.tv_usec-tv1.tv_usec));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic