diff options
Diffstat (limited to 'src/rtfx.cpp')
-rw-r--r-- | src/rtfx.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rtfx.cpp b/src/rtfx.cpp index 541432e..2a9f3fc 100644 --- a/src/rtfx.cpp +++ b/src/rtfx.cpp @@ -115,10 +115,7 @@ int main(int argc, char* argv[]) return 1; } - // TODO: This is disgusting. We need to bug the sablotron guys - // for a better way to serialize a document. DOM::Document doc = composer.getDocument(); - string xml = doc.serialize(); FILE* out = fopen(argv[1], "wb"); if(!out) @@ -127,7 +124,7 @@ int main(int argc, char* argv[]) return 1; } - fwrite(xml.c_str(), 1, xml.length(), out); + doc.serialize(out); fclose(out); return 0; } |