diff options
author | Stef Walter <stef@memberwebs.com> | 2004-03-31 02:42:24 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-03-31 02:42:24 +0000 |
commit | c60a35fc2a50f938e0d2dcd726784afbb001a756 (patch) | |
tree | 648e452e97149aca40da5199b481b484406c4a12 /src/xmlcomposer.cpp | |
parent | d33b51f5672580b3fee5054eaf892f7bb4520985 (diff) |
Cleanup for unix
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r-- | src/xmlcomposer.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp index 1bfeb30..9795fe2 100644 --- a/src/xmlcomposer.cpp +++ b/src/xmlcomposer.cpp @@ -1,9 +1,6 @@ -// RtfParser.cpp: implementation of the RtfParser class. -// -////////////////////////////////////////////////////////////////////// -#include "stdafx.h" -#include "RtfAnalyser.h" +#include "usuals.h" +#include "rtfanalyser.h" const char* kElDest = "i_dest"; const char* kElBlock = "i_block"; @@ -1010,9 +1007,11 @@ bool RtfParser::isEqualElement(const DOM::Element& el1, const DOM::Element& el2) wstring RtfParser::formatInt(int num) { - wstring n; - n.format(L"%d", num); - return n; + wchar_t buff[12]; + swprintf(buff, L"%d", num); + + wstring n(buff); + return n; } /** @@ -1092,7 +1091,7 @@ void RtfParser::copyAttributes(const DOM::Element& src, DOM::Element& dest, for(const char** t = hideList; *t != NULL; t++) { if(name == *t) - name.clear(); + name.erase(); } } @@ -1477,7 +1476,7 @@ void RtfParser::breakLists(DOM::Document& doc) else { list = NULL; - previd.clear(); + previd.erase(); } } @@ -1808,4 +1807,4 @@ void RtfParser::removeDuplicates(const DOM::Document& doc) } } } -}
\ No newline at end of file +} |