Fix for coverity #29409 - Use char 0 instead of NULL
[supertux.git] / src / supertux / info_box_line.hpp
index d2b3821..56c6bca 100644 (file)
 #include <memory>
 
 #include "video/color.hpp"
+#include "video/font_ptr.hpp"
+#include "video/surface_ptr.hpp"
 
 class DrawingContext;
-class Font;
 class Rectf;
-class Surface;
 
 /**
  * Helper class for InfoBox: Represents a line of text
@@ -46,10 +46,10 @@ public:
 
 private:
   InfoBoxLine::LineType lineType;
-  Font* font;
+  FontPtr font;
   Color color;
   std::string text;
-  std::auto_ptr<Surface> image;
+  SurfacePtr image;
 
 private:
   InfoBoxLine(const InfoBoxLine&);