Initialize with = instead of braces, and drop const from local autos

Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
This commit is contained in:
shweet committed 2026-11-22 17:27:24 -05:00
1 parent 666f65bf3a
commit 40f6b554b5
138 files changed
+1500 -1500

No files matched your search

+6 -6
View File
@@ -8,12 +8,12 @@
static void callback(void*, MIX_Mixer*, const SDL_AudioSpec*, float*, int);
public:
std::vector<float> stream{};
SDL_AudioSpec spec{};
int callbackSamples{};
Uint64 captureStartCounter{};
Uint64 firstCallbackCounter{};
bool isFirstCallbackCaptured{};
std::vector<float> stream;
SDL_AudioSpec spec = {};
int callbackSamples = 0;
Uint64 captureStartCounter = 0;
Uint64 firstCallbackCounter = 0;
bool isFirstCallbackCaptured = false;
AudioStream(MIX_Mixer*);
};