]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetmarginal.C
index f5c62a92dcb5857776de623c155640147c3197a7..853219bf143e23f40ead018b96cfe6cfafd7caec 100644 (file)
@@ -6,7 +6,7 @@
  * \author Jürgen Vigna
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -23,6 +23,7 @@
 
 
 using std::ostream;
+using std::auto_ptr;
 
 
 InsetMarginal::InsetMarginal(BufferParams const & bp)
@@ -41,9 +42,9 @@ InsetMarginal::InsetMarginal(InsetMarginal const & in)
 }
 
 
-InsetBase * InsetMarginal::clone() const
+auto_ptr<InsetBase> InsetMarginal::clone() const
 {
-       return new InsetMarginal(*this);
+       return auto_ptr<InsetBase>(new InsetMarginal(*this));
 }
 
 
@@ -53,7 +54,7 @@ string const InsetMarginal::editMessage() const
 }
 
 
-int InsetMarginal::latex(Buffer const * buf, ostream & os,
+int InsetMarginal::latex(Buffer const & buf, ostream & os,
                         LatexRunParams const & runparams) const
 {
        os << "%\n\\marginpar{";