From 10d7f6d479b05cf101173a8ab036676482b7c251 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 19 Oct 2015 21:25:26 +0200 Subject: [PATCH] msvc: Fix compilation of TexRow The problem was that "odocstringstream << (const char *) ptr" did not compile using msvc. --- src/TexRow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TexRow.cpp b/src/TexRow.cpp index 4bec66e05a..60a3539c29 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -466,12 +466,12 @@ std::pair 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() ); }