mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrupt keywords in ensight binary
- regression introduced by ef9a14b288
This commit is contained in:
@ -282,14 +282,15 @@ Foam::Ostream& Foam::ensightFile::writeKeyword(const keyType& key)
|
|||||||
{
|
{
|
||||||
if (allowUndef_)
|
if (allowUndef_)
|
||||||
{
|
{
|
||||||
write(string(key + " undef"));
|
write(string(static_cast<const string&>(key) + " undef"));
|
||||||
newline();
|
newline();
|
||||||
write(undefValue_);
|
write(undefValue_);
|
||||||
newline();
|
newline();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
write(key);
|
// ensure we get ensightFile::write(const string&)
|
||||||
|
write(static_cast<const string&>(key));
|
||||||
newline();
|
newline();
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
@ -74,7 +74,8 @@ Foam::ensightGeoFile::~ensightGeoFile()
|
|||||||
|
|
||||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
||||||
{
|
{
|
||||||
write(key); newline();
|
// ensure we get ensightFile::write(const string&)
|
||||||
|
write(static_cast<const string&>(key)); newline();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user