Replaced std::auto_ptr<> with std::unique_ptr<>
[supertux.git] / src / object / camera.hpp
index f396c26..3c53f84 100644 (file)
@@ -88,6 +88,7 @@ private:
   void keep_in_bounds(Vector& vector);
   void shake();
 
+private:
   /**
    * The camera basically provides lookahead on the left or right side
    * or is undecided.
@@ -96,6 +97,7 @@ private:
     LOOKAHEAD_NONE, LOOKAHEAD_LEFT, LOOKAHEAD_RIGHT
   };
 
+private:
   Vector translation;
 
   Sector* sector;
@@ -108,8 +110,8 @@ private:
   Vector cached_translation;
 
   // autoscroll mode
-  std::auto_ptr<Path> autoscroll_path;
-  std::auto_ptr<PathWalker> autoscroll_walker;
+  std::unique_ptr<Path> autoscroll_path;
+  std::unique_ptr<PathWalker> autoscroll_walker;
 
   // shaking
   Timer shaketimer;