aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2023-01-15 13:43:27 -0800
committerGitHub <noreply@github.com>2023-01-15 13:43:27 -0800
commit0526ecd2f95877b167293e50ab8ce0ce614d03f4 (patch)
treead80a5811292e87601020f6aadcb2f6ff138761d /alc/alc.cpp
parentd9d445772c50e53c12ab77d97cc5f3a76839d83a (diff)
clang-tidy cleanups (#800)
* clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index a7c36d5c..bf428e07 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1621,7 +1621,7 @@ std::unique_ptr<Compressor> CreateDeviceLimiter(const ALCdevice *device, const f
* to jump forward or back. Must not be called while the device is running/
* mixing.
*/
-static inline void UpdateClockBase(ALCdevice *device)
+inline void UpdateClockBase(ALCdevice *device)
{
IncrementRef(device->MixCount);
device->ClockBase += nanoseconds{seconds{device->SamplesDone}} / device->Frequency;