]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.C
the fstream/iostream changes and some small other things
[lyx.git] / src / insets / inseterror.C
index 61afb4717ab9fc27cf71cc58446d7d20332468c4..74c0cc7c793e953d00f6ba05b5fcd0af1f5a4562 100644 (file)
@@ -26,6 +26,7 @@ InsetError::InsetError()
        form = 0;
 }
 
+
 InsetError::InsetError(string const & str)
        : contents(str)
 {
@@ -88,16 +89,17 @@ void InsetError::Draw(LyXFont font, LyXScreen & scr,
 }
 
 
-void InsetError::Write(FILE *)
+void InsetError::Write(ostream &)
 {
 }
 
+
 void InsetError::Read(LyXLex &)
 {
 }
 
 
-int InsetError::Latex(FILE *, signed char /*fragile*/)
+int InsetError::Latex(ostream &, signed char /*fragile*/)
 {
        return 0;
 }
@@ -181,8 +183,7 @@ void InsetError::Edit(int, int)
 }
 
 
-Inset * InsetError::Clone()
+Inset * InsetError::Clone() const
 {
-       InsetError * result = new InsetError(contents);
-       return result;
+       return new InsetError(contents);
 }