Commit 7467236e authored by Vedran Miletić's avatar Vedran Miletić

De-GNUify: std::_Ios_Openmode -> std::ios_base::openmode

parent 34e2a968
......@@ -126,9 +126,9 @@ public:
RbtCoord GetMaxExtents() { return max; }
// iofstream methods
long
WriteGrid(std::_Ios_Openmode mode); // returns the number of points written
long ReadGrid(); // ditto (fields read)
long WriteGrid(
std::ios_base::openmode mode); // returns the number of points written
long ReadGrid(); // ditto (fields read)
};
// the relevant SVL code in gridshow.svl
......
......@@ -110,7 +110,7 @@ void RbtBaseFileSink::ReplaceLine(const RbtString &fileRec, RbtUInt nRec) {
// Private methods
/////////////////
void RbtBaseFileSink::Open(RbtBool bAppend) throw(RbtError) {
std::_Ios_Openmode openMode = ios_base::out;
std::ios_base::openmode openMode = std::ios_base::out;
if (bAppend)
openMode = openMode | ios_base::app;
m_fileOut.open(m_strFileName.c_str(), openMode);
......
......@@ -202,7 +202,7 @@ void RbtMOEGrid::CalculateCommonExtents(vector<RbtString> strPrmFiles) {
// and returns the number of gridpoints written
// that should be the same as the number of datapoints (a_data.size() above)
// mode stands for ios_base::trunc or ios:app
long RbtMOEGrid::WriteGrid(std::_Ios_Openmode mode) {
long RbtMOEGrid::WriteGrid(std::ios_base::openmode mode) {
// file to save (binary, overidden)
ofstream ofstr;
ofstr.open(stream_name.c_str(), ios_base::out | mode | ios_base::binary);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment