Skip to content

Commit

Permalink
Initialize member variables in initialization list.
Browse files Browse the repository at this point in the history
  • Loading branch information
timonvo committed Mar 14, 2011
1 parent 99ff815 commit 84edd04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backends/audio.cpp
Expand Up @@ -44,11 +44,9 @@ Else
Select and load the good audio plugin lib files
*****************/

AudioManager::AudioManager ( PluginManager *sharedPluginManager )
AudioManager::AudioManager ( PluginManager *sharedPluginManager ) :
oAudioPlugin(NULL), selectedAudioBackend(""), pluginManager(sharedPluginManager)
{
pluginManager = sharedPluginManager;
selectedAudioBackend = "";
oAudioPlugin = NULL;
// string DesiredAudio = get_audioConfig(); //Looks for the audio selected in the user's config
string DesiredAudio = sys->config->getAudioBackendName();
set_audiobackend ( DesiredAudio );
Expand Down

0 comments on commit 84edd04

Please sign in to comment.