From 4669c671860831e91fcb667005d6b06ba58f6fef Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 8 Jan 2020 12:53:20 +0100 Subject: [PATCH] Make a few things const --- distrho/src/DistrhoPluginVST.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp index d5175815..eb22455b 100644 --- a/distrho/src/DistrhoPluginVST.cpp +++ b/distrho/src/DistrhoPluginVST.cpp @@ -180,13 +180,13 @@ public: void clearEditorMidi() { - MutexLocker locker(fMutex); + const MutexLocker locker(fMutex); fMidiCount = 0; } void sendEditorMidi(const uint8_t midiData[3]) { - MutexLocker locker(fMutex); + const MutexLocker locker(fMutex); uint32_t count = fMidiCount; if (count == kMidiStorageCapacity) @@ -205,7 +205,7 @@ public: if (fMidiCount == 0) return eventCount; - MutexTryLocker locker(fMutex); + const MutexTryLocker locker(fMutex); if (locker.wasNotLocked()) return eventCount;