Consistency of indents, removes false-pos warnings

Clang reports missleading indentation with non bracketed if in the
presence of mixed tabs/spaces
This commit is contained in:
Thomas Hume 2017-02-23 20:19:10 +01:00 committed by Christoph Oelckers
parent 06119987a8
commit c1cafd3bbc
1 changed files with 1611 additions and 1607 deletions

View File

@ -700,11 +700,15 @@ ALCdevice *OpenALSoundRenderer::InitDevice()
template<typename T>
static void LoadALFunc(const char *name, T *x)
{ *x = reinterpret_cast<T>(alGetProcAddress(name)); }
{
*x = reinterpret_cast<T>(alGetProcAddress(name));
}
template<typename T>
static void LoadALCFunc(ALCdevice *device, const char *name, T *x)
{ *x = reinterpret_cast<T>(alcGetProcAddress(device, name)); }
{
*x = reinterpret_cast<T>(alcGetProcAddress(device, name));
}
#define LOAD_FUNC(x) (LoadALFunc(#x, &x))
#define LOAD_DEV_FUNC(d, x) (LoadALCFunc(d, #x, &x))