]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_stringinset.C
index 6899b3108934cd26b273c6c47f39ba0bb5d45bbc..b1dcddae5c0cf01e33e3cbc51a0412cb8451f7ba 100644 (file)
@@ -7,15 +7,17 @@
 #include "math_support.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 MathStringInset::MathStringInset(string const & s)
        : str_(s)
 {}
 
 
-InsetBase * MathStringInset::clone() const
+auto_ptr<InsetBase> MathStringInset::clone() const
 {
-       return new MathStringInset(*this);
+       return auto_ptr<InsetBase>(new MathStringInset(*this));
 }