From: Tron <de...@us...> - 2004-05-01 08:26:29
|
Update of /cvsroot/darkeyetool/det/src/dsa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16252/src/dsa Modified Files: NDSAUtil.cpp Log Message: "sprintf()" ersetzt durch einen "ostringstream" Index: NDSAUtil.cpp =================================================================== RCS file: /cvsroot/darkeyetool/det/src/dsa/NDSAUtil.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** NDSAUtil.cpp 12 Apr 2004 01:43:03 -0000 1.12 --- NDSAUtil.cpp 1 May 2004 08:26:19 -0000 1.13 *************** *** 27,30 **** --- 27,31 ---- //@<< includes >> //@+node:<< includes >> + #include <sstream> #include "NDSAUtil.h" #include "Log.h" *************** *** 55,66 **** std::string strings::int2sStr(int i, bool PlusVorzeichen) ! { ! std::string s; ! char c[20]; ! sprintf(c, "%i", i); ! s.assign(c); ! if (PlusVorzeichen && (i>-1)) s = "+"+s; ! return s; ! } //@-node:int2sStr //@+node:BeginntMit --- 56,65 ---- std::string strings::int2sStr(int i, bool PlusVorzeichen) ! { ! std::ostringstream s; ! if (PlusVorzeichen) s << std::showpos; ! s << i; ! return s.str(); ! } //@-node:int2sStr //@+node:BeginntMit *************** *** 126,129 **** --- 125,131 ---- //@+node:<< Version History >> // $Log$ + // Revision 1.13 2004/05/01 08:26:19 dertron + // "sprintf()" ersetzt durch einen "ostringstream" + // // Revision 1.12 2004/04/12 01:43:03 vrandezo // Anpassungen fuer Merkmalskenntnis (wegen Doppelklammer) |