Bug fix: missing mode in allocator. Valerio Novaresio
This commit is contained in:
parent
1d2a05fc33
commit
63f0794020
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ Foam::OFstreamAllocator::OFstreamAllocator
|
||||||
rm(pathname);
|
rm(pathname);
|
||||||
}
|
}
|
||||||
|
|
||||||
ofPtr_ = new ogzstream((pathname + ".gz").c_str());
|
ofPtr_ = new ogzstream((pathname + ".gz").c_str(), mode);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -71,7 +71,7 @@ Foam::OFstreamAllocator::OFstreamAllocator
|
||||||
rm(pathname + ".gz");
|
rm(pathname + ".gz");
|
||||||
}
|
}
|
||||||
|
|
||||||
ofPtr_ = new ofstream(pathname.c_str());
|
ofPtr_ = new ofstream(pathname.c_str(), mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue