Show
Ignore:
Timestamp:
02/20/09 03:14:31 (4 years ago)
Author:
gabriel@…
Message:

Fix several errors flagged by -Wall

gui/src/FilePreview.cpp
gui/src/FilePreview.h

These files were totally commented out and have been untouched
for over a year. They have been deleted.

libs/hydrogen/include/hydrogen/instrument.h
libs/hydrogen/src/instrument.cpp

Instrument::get_layer() marked inline, so code moved to header to make it inline.
Instrument::Instrument() Triggered a pedantic error about initialization. So,

parameters were rearranged to match the order they were declared.

libs/hydrogen/src/local_file_mgr.cpp

LocalFileMng::saveDrumkit() was not using the pSample local variable.

gui/src/PatternEditor/PianoRollEditor.cpp
gui/src/PatternEditor/PianoRollEditor.h
libs/hydrogen/src/midiMap.cpp
libs/hydrogen/src/sequencer/sequencer.cpp

Add newline to ends of files. (An error on some old compilers.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libs/hydrogen/src/instrument.cpp

    r571 r818  
    4141                , __muted( false ) 
    4242                , __name( name ) 
     43                , __pan_l( 1.0 ) 
     44                , __pan_r( 1.0 ) 
     45                , __gain( 1.0 ) 
    4346                , __volume( 1.0 ) 
    4447                , __filter_resonance( 0.0 ) 
    4548                , __filter_cutoff( 1.0 ) 
     49                , __peak_l( 0.0 ) 
     50                , __peak_r( 0.0 ) 
    4651                , __random_pitch_factor( 0.0 ) 
    4752                , __id( id ) 
     53                , __drumkit_name( "" ) 
    4854                , __filter_active( false ) 
    49                 , __pan_l( 1.0 ) 
    50                 , __pan_r( 1.0 ) 
     55                , __mute_group( -1 ) 
     56                , __active( true ) 
    5157                , __soloed( false ) 
    52                 , __active( true ) 
    53                 , __peak_l( 0.0 ) 
    54                 , __peak_r( 0.0 ) 
    55                 , __gain( 1.0 ) 
    56                 , __drumkit_name( "" ) 
    57                 , __mute_group( -1 ) 
    5858                , __stop_notes( false ) 
    5959{ 
     
    7777        delete __adsr; 
    7878        __adsr = NULL; 
    79 } 
    80  
    81  
    82  
    83 inline InstrumentLayer* Instrument::get_layer( int nLayer ) 
    84 { 
    85         if ( nLayer < 0 ) { 
    86                 ERRORLOG( QString( "nLayer < 0 (nLayer=%1)" ).arg( nLayer ) ); 
    87                 return NULL; 
    88         } 
    89         if ( nLayer >= MAX_LAYERS ) { 
    90                 ERRORLOG( QString( "nLayer > MAX_LAYERS (nLayer=%1)" ).arg( nLayer ) ); 
    91                 return NULL; 
    92         } 
    93  
    94         return __layer_list[ nLayer ]; 
    9579} 
    9680