Replaced .reset(new Surface()) with a factory method
[supertux.git] / src / supertux / info_box_line.hpp
index ac1f079..3501229 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <string>
 #include <vector>
+#include <memory>
 
 #include "video/color.hpp"
 
@@ -48,7 +49,7 @@ private:
   Font* font;
   Color color;
   std::string text;
-  Surface* image;
+  std::auto_ptr<Surface> image;
 
 private:
   InfoBoxLine(const InfoBoxLine&);