]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
fix typo that put too many include paths for most people
[lyx.git] / src / insets / insettheorem.C
index 9ea8506ba20409b33db65e96f6383bcd66e7ae01..e6cf3016aa86fd1e7cc87de7dfdf5263d866ba54 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 1998 The LyX Team.
  *
  * ======================================================
@@ -49,7 +49,7 @@ InsetTheorem::InsetTheorem()
 }
 
 
-void InsetTheorem::write(Buffer const * buf, ostream & os) const 
+void InsetTheorem::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);
@@ -58,9 +58,11 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const
 
 Inset * InsetTheorem::clone(Buffer const &, bool) const
 {
+#ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
+#endif
        InsetTheorem * result = new InsetTheorem;
-       
+
        result->collapsed_ = collapsed_;
        return result;
 }
@@ -76,9 +78,9 @@ int InsetTheorem::latex(Buffer const * buf,
                        ostream & os, bool fragile, bool fp) const
 {
        os << "\\begin{theorem}%\n";
-       
+
        int i = inset.latex(buf, os, fragile, fp);
        os << "\\end{theorem}%\n";
-       
+
        return i + 2;
 }