]> git.lyx.org Git - features.git/blobdiff - src/paragraph.C
STRCONV
[features.git] / src / paragraph.C
index 2e3f8a927d36540605c93fff4117bfafe409afef..bee7384f6b249882284c94b15834d7dc13db473f 100644 (file)
@@ -1743,7 +1743,7 @@ string const Paragraph::asString(Buffer const * buffer, bool label)
                         getInset(i)->lyxCode() == Inset::MATH_CODE) {
                        ostringstream ost;
                        getInset(i)->ascii(buffer, ost);
-                       s += subst(ost.str().c_str(),'\n',' ');
+                       s += subst(STRCONV(ost.str()),'\n',' ');
                }
        }
 
@@ -1775,7 +1775,7 @@ string const Paragraph::asString(Buffer const * buffer,
                }
        }
 
-       return ost.str().c_str();
+       return STRCONV(ost.str());
 }