output/Timer: use C++11 initializers
This commit is contained in:
		| @@ -27,8 +27,7 @@ | ||||
| #include <assert.h> | ||||
|  | ||||
| Timer::Timer(const AudioFormat af) | ||||
| 	:started(false), | ||||
| 	 rate(af.sample_rate * af.GetFrameSize()) | ||||
| 	:rate(af.sample_rate * af.GetFrameSize()) | ||||
| { | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -26,7 +26,7 @@ struct AudioFormat; | ||||
|  | ||||
| class Timer { | ||||
| 	uint64_t time; | ||||
| 	bool started; | ||||
| 	bool started = false; | ||||
| 	const int rate; | ||||
| public: | ||||
| 	explicit Timer(AudioFormat af); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann