diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
commit | 7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch) | |
tree | 2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/guichan/widgets/slider.cpp | |
parent | c3afff20d4989ab2835545715bbe67e5b5d9b353 (diff) | |
download | plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2 plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip |
Fix some issues after auto checking.
Diffstat (limited to 'src/guichan/widgets/slider.cpp')
-rw-r--r-- | src/guichan/widgets/slider.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/guichan/widgets/slider.cpp b/src/guichan/widgets/slider.cpp index d7e8084cc..189ee6e7b 100644 --- a/src/guichan/widgets/slider.cpp +++ b/src/guichan/widgets/slider.cpp @@ -56,13 +56,11 @@ namespace gcn { - Slider::Slider(double scaleEnd) + Slider::Slider(double scaleEnd) : + mDragged(false), + mScaleStart(0), + mScaleEnd(scaleEnd) { - mDragged = false; - - mScaleStart = 0; - mScaleEnd = scaleEnd; - setFocusable(true); setFrameSize(1); setOrientation(HORIZONTAL); @@ -74,13 +72,11 @@ namespace gcn addKeyListener(this); } - Slider::Slider(double scaleStart, double scaleEnd) + Slider::Slider(double scaleStart, double scaleEnd) : + mDragged(false), + mScaleStart(scaleStart), + mScaleEnd(scaleEnd) { - mDragged = false; - - mScaleStart = scaleStart; - mScaleEnd = scaleEnd; - setFocusable(true); setFrameSize(1); setOrientation(HORIZONTAL); |