gfxtools/gditools/fontcomp/GDSFCOMP.CPP
branchRCL_3
changeset 6 2013ebce6d92
parent 0 f58d6ec98e88
--- a/gfxtools/gditools/fontcomp/GDSFCOMP.CPP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/GDSFCOMP.CPP	Fri Feb 19 23:50:22 2010 +0200
@@ -16,8 +16,10 @@
 */
 
 
-#include "GDSFCOMP.H"
-#include "TOOLSVER.H"
+#include "gdsfcomp.h"
+#include "toolsver.h"
+
+#include <sstream>
 
 int GdsFontCompiler::WriteFont()
 	{
@@ -155,7 +157,7 @@
 		WriteFormattedData(buf,1);
 	}
 
-void GdsFontCompiler::WriteFormattedData(char* aData,int aNewLine)
+void GdsFontCompiler::WriteFormattedData(const char* aData,int aNewLine)
 	{
 	if(aData)
 		iOutputFile << aData;
@@ -165,9 +167,11 @@
 
 void GdsFontCompiler::WriteFormattedData(int aNum,int aNewLine)
 	{
-	char numbuf[16];
-	_itoa(aNum,numbuf,10);
-	WriteFormattedData(numbuf,aNewLine);
+    std::stringstream ss;
+
+    ss << aNum;
+
+	WriteFormattedData(ss.str().c_str(), aNewLine);
 	}
 
 void GdsFontCompiler::WriteNewLine()