]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / insetlabel.C
index fc2b54719f090a253f2dc3aa006d64ba3dbf230a..b669e72b24318cb303be0bed3cb22627675a5a51 100644 (file)
@@ -25,7 +25,7 @@ InsetLabel::InsetLabel(string const & cmd)
 }
 
 
-InsetLabel * InsetLabel::Clone() const
+Inset * InsetLabel::Clone() const
 {
        return new InsetLabel(getCommand());
 }
@@ -42,9 +42,10 @@ string InsetLabel::getLabel(int) const
        return contents;
 }
 
-int InsetLabel::Latex(FILE * file, signed char /*fragile*/)
+
+int InsetLabel::Latex(ostream & os, signed char /*fragile*/)
 {
-       fprintf(file, "%s", escape(getCommand()).c_str());
+       os << escape(getCommand());
        return 0;
 }