mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-26 08:29:54 -06:00
cmXMLWriter: use ifstream from KWSys
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#include "cmXMLSafe.h"
|
#include "cmXMLSafe.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <fstream>
|
#include <cmsys/FStream.hxx>
|
||||||
|
|
||||||
cmXMLWriter::cmXMLWriter(std::ostream& output, std::size_t level)
|
cmXMLWriter::cmXMLWriter(std::ostream& output, std::size_t level)
|
||||||
: Output(output)
|
: Output(output)
|
||||||
@@ -107,7 +107,7 @@ void cmXMLWriter::ProcessingInstruction(const char* target, const char* data)
|
|||||||
void cmXMLWriter::FragmentFile(const char* fname)
|
void cmXMLWriter::FragmentFile(const char* fname)
|
||||||
{
|
{
|
||||||
this->CloseStartElement();
|
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();
|
this->Output << fin.rdbuf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user