]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetoptarg.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetoptarg.C
index eb3268b89f0953980719a47cead4c938f4e6696e..a1f92a5805c03b9cb2418281a29775f05224a671 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \author Martin Vermeer
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -26,6 +26,8 @@
 using std::ostream;
 using std::vector;
 using std::pair;
+using std::auto_ptr;
+
 
 InsetOptArg::InsetOptArg(BufferParams const & ins)
        : InsetCollapsable(ins, true)
@@ -47,9 +49,9 @@ InsetOptArg::InsetOptArg(InsetOptArg const & in)
 }
 
 
-Inset * InsetOptArg::clone() const
+auto_ptr<InsetBase> InsetOptArg::clone() const
 {
-       return new InsetOptArg(*this);
+       return auto_ptr<InsetBase>(new InsetOptArg(*this));
 }
 
 
@@ -59,21 +61,21 @@ string const InsetOptArg::editMessage() const
 }
 
 
-void InsetOptArg::write(Buffer const * buf, ostream & os) const
+void InsetOptArg::write(Buffer const & buf, ostream & os) const
 {
        os << "OptArg" << "\n";
        InsetCollapsable::write(buf, os);
 }
 
 
-int InsetOptArg::latex(Buffer const *, ostream &,
+int InsetOptArg::latex(Buffer const &, ostream &,
                       LatexRunParams const &) const
 {
        return 0;
 }
 
 
-int InsetOptArg::latexOptional(Buffer const * buf, ostream & os,
+int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
                               LatexRunParams const & runparams) const
 {
        os << '[';