cmXMLWriter: use ifstream from KWSys

This commit is contained in:
Daniel Pfeifer 2016-06-14 23:26:16 +02:00
parent 24ab29b882
commit ed5fa48d50
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#include "cmXMLSafe.h"
#include <cassert>
#include <fstream>
#include <cmsys/FStream.hxx>
cmXMLWriter::cmXMLWriter(std::ostream& output, std::size_t level)
: Output(output)
@ -107,7 +107,7 @@ void cmXMLWriter::ProcessingInstruction(const char* target, const char* data)
void cmXMLWriter::FragmentFile(const char* fname)
{
this->CloseStartElement();
std::ifstream fin(fname, std::ios::in | std::ios::binary);
cmsys::ifstream fin(fname, std::ios::in | std::ios::binary);
this->Output << fin.rdbuf();
}