From 6e461de50e73c0c957af73e5ee7a25f4d0293490 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 26 Mar 2024 12:23:51 +0100 Subject: Make all mutex locks const, as per linter warning --- src/drumgizmo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drumgizmo.cc') diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index bd729ab..85624ca 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -391,7 +391,7 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t* s, size_t sz) { // TODO: We should make all audiofiles reference counted and get rid of this lock. - std::lock_guard guard(af.mutex); + const std::lock_guard guard(af.mutex); renderSampleEvent(sample_event, pos, s, sz); -- cgit v1.2.3