mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-29 16:51:12 +00:00
refactor: fix sonar cpp:S936 (#5905)
This commit is contained in:
1 parent
d1fc311f6b
commit
b261a1b95e
24 files changed
+295
-111
No files matched your search
+9
-9
@@ -35,17 +35,17 @@ namespace audio {
|
||||
CoTaskMemFree(static_cast<LPVOID>(p));
|
||||
}
|
||||
|
||||
using device_enum_t = util::safe_ptr<IMMDeviceEnumerator, Release<IMMDeviceEnumerator>>;
|
||||
using collection_t = util::safe_ptr<IMMDeviceCollection, Release<IMMDeviceCollection>>;
|
||||
using prop_t = util::safe_ptr<IPropertyStore, Release<IPropertyStore>>;
|
||||
using device_t = util::safe_ptr<IMMDevice, Release<IMMDevice>>;
|
||||
using audio_client_t = util::safe_ptr<IAudioClient, Release<IAudioClient>>;
|
||||
using audio_capture_t = util::safe_ptr<IAudioCaptureClient, Release<IAudioCaptureClient>>;
|
||||
using wave_format_t = util::safe_ptr<WAVEFORMATEX, co_task_free<WAVEFORMATEX>>;
|
||||
using device_enum_t = util::safe_ptr<IMMDeviceEnumerator, &Release<IMMDeviceEnumerator>>;
|
||||
using collection_t = util::safe_ptr<IMMDeviceCollection, &Release<IMMDeviceCollection>>;
|
||||
using prop_t = util::safe_ptr<IPropertyStore, &Release<IPropertyStore>>;
|
||||
using device_t = util::safe_ptr<IMMDevice, &Release<IMMDevice>>;
|
||||
using audio_client_t = util::safe_ptr<IAudioClient, &Release<IAudioClient>>;
|
||||
using audio_capture_t = util::safe_ptr<IAudioCaptureClient, &Release<IAudioCaptureClient>>;
|
||||
using wave_format_t = util::safe_ptr<WAVEFORMATEX, &co_task_free<WAVEFORMATEX>>;
|
||||
|
||||
using wstring_t = util::safe_ptr<WCHAR, co_task_free<WCHAR>>;
|
||||
using wstring_t = util::safe_ptr<WCHAR, &co_task_free<WCHAR>>;
|
||||
|
||||
using handle_t = util::safe_ptr_v2<void, BOOL, CloseHandle>;
|
||||
using handle_t = util::safe_ptr_v2<void, BOOL, &CloseHandle>;
|
||||
|
||||
class prop_var_t {
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user