Made code -Wshadow clean, missed a bunch of issues in the last commit
[supertux.git] / src / object / text_object.hpp
index 4605eef..4a36b71 100644 (file)
@@ -45,15 +45,15 @@ public:
   void set_centered(bool centered);
   bool is_visible();
 
-  void set_anchor_point(AnchorPoint anchor) {
-    this->anchor = anchor;
+  void set_anchor_point(AnchorPoint anchor_) {
+    this->anchor = anchor_;
   }
   AnchorPoint get_anchor_point() const {
     return anchor;
   }
 
-  void set_pos(const Vector& pos) {
-    this->pos = pos;
+  void set_pos(const Vector& pos_) {
+    this->pos = pos_;
   }
   void set_pos(float x, float y) {
     set_pos(Vector(x, y));
@@ -68,8 +68,8 @@ public:
     return pos.y;
   }
 
-  void set_anchor_point(int anchor) {
-    set_anchor_point((AnchorPoint) anchor);
+  void set_anchor_point(int anchor_) {
+    set_anchor_point((AnchorPoint) anchor_);
   }
   int get_anchor_point() {
     return (int) get_anchor_point();