Don't override type() needlessly.

pull/3/head
Jonathan Moore Liles 2008-03-12 13:08:55 -05:00
parent 56c04b6e30
commit da12ff957c
2 changed files with 1 additions and 5 deletions

2
DPM.C
View File

@ -65,7 +65,7 @@ DPM::draw ( void )
if ( ! active_r() )
c = fl_inactive( c );
if ( _type == FL_HORIZONTAL )
if ( type() == FL_HORIZONTAL )
draw_box( box(), x() + (p * bw), y(), bw, h(), c );
else
draw_box( box(), x(), y() + h() - (p * bh), w(), bh, c );

4
DPM.H
View File

@ -26,7 +26,6 @@
class DPM : public Meter
{
int _type;
int _divisions;
float _dim;
@ -51,9 +50,6 @@ public:
bool divisions ( void ) const { return _divisions; }
void divisions ( int v ) { _divisions = v; }
int type ( void ) const { return _type; }
void type ( int v ) { _type = v; }
float dim ( void ) const { return _dim; }
void dim ( float v ) { _dim = v; redraw(); }