summaryrefslogtreecommitdiff
path: root/hwpfilter/source/mzstring.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/mzstring.cxx')
-rw-r--r--hwpfilter/source/mzstring.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/hwpfilter/source/mzstring.cxx b/hwpfilter/source/mzstring.cxx
index 462ed91ad3fc..06425b7e10bf 100644
--- a/hwpfilter/source/mzstring.cxx
+++ b/hwpfilter/source/mzstring.cxx
@@ -29,13 +29,10 @@
# endif
# include <windows.h>
#endif
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifndef _WIN32
-# define wsprintfA sprintf
-#endif
+#include <rtl/string.hxx>
const int AllocSize = 8;
@@ -182,20 +179,16 @@ MzString &MzString::operator << (char ch)
MzString &MzString::operator << (int i)
{
- char str[80];
-
- wsprintfA(str, "%d", i);
- append(str);
+ auto const str = OString::number(i);
+ append(str.getStr(), str.length);
return *this;
}
MzString &MzString::operator << (tools::Long l)
{
- char str[80];
-
- wsprintfA(str, "%ld", l);
- append(str);
+ auto const str = OString::number(l);
+ append(str.getStr(), str.length);
return *this;
}