Moved member variables to initializer list

This commit is contained in:
Wilson E. Alvarez
2018-12-08 15:07:33 -05:00
parent 41d1dba35f
commit 08f22f1cf0
44 changed files with 609 additions and 694 deletions

View File

@ -58,17 +58,17 @@ class AudioDriverWASAPI : public AudioDriver {
String device_name;
String new_device;
AudioDeviceWASAPI() {
audio_client = NULL;
render_client = NULL;
capture_client = NULL;
active = false;
format_tag = 0;
bits_per_sample = 0;
channels = 0;
frame_size = 0;
device_name = "Default";
new_device = "Default";
AudioDeviceWASAPI() :
audio_client(NULL),
render_client(NULL),
capture_client(NULL),
active(false),
format_tag(0),
bits_per_sample(0),
channels(0),
frame_size(0),
device_name("Default"),
new_device("Default") {
}
};