msvc: Fix compilation of TexRow

The problem was that "odocstringstream << (const char *) ptr" did not
compile using msvc.
This commit is contained in:
Vincent van Ravesteijn 2015-10-19 21:25:26 +02:00
parent be3e470068
commit 10d7f6d479

View File

@ -466,12 +466,12 @@ std::pair<int,int> TexRow::rowFromCursor(Cursor const & cur) const
///
docstring TexRow::asString(RowEntry const & entry)
{
odocstringstream os;
std::ostringstream t;
if (entry.is_math)
os << "(1," << entry.math.id << "," << entry.math.cell << ")";
t << "(1," << entry.math.id << "," << entry.math.cell << ")";
else
os << "(0," << entry.text.id << "," << entry.text.pos << ")";
return os.str();
t << "(0," << entry.text.id << "," << entry.text.pos << ")";
return from_utf8( t.str() );
}