Ver Fonte

Fix some issues discovered with cppcheck

Victor Luchitz há 13 anos atrás
pai
commit
d2cc5e12df
2 ficheiros alterados com 1 adições e 2 exclusões
  1. 0 2
      Source/Controls/InputTypeRange.h
  2. 1 0
      Source/Controls/WidgetSlider.cpp

+ 0 - 2
Source/Controls/InputTypeRange.h

@@ -68,8 +68,6 @@ public:
 	virtual bool GetIntrinsicDimensions(Rocket::Core::Vector2f& dimensions);
 
 private:
-	int size;
-
 	WidgetSliderInput* widget;
 };
 

+ 1 - 0
Source/Controls/WidgetSlider.cpp

@@ -47,6 +47,7 @@ WidgetSlider::WidgetSlider(ElementFormControl* _parent)
 	arrows[1] = NULL;
 
 	bar_position = 0;
+	bar_drag_anchor = 0;
 
 	arrow_timers[0] = -1;
 	arrow_timers[1] = -1;