Browse Source

Make a few things const

pull/212/head
Jean Pierre Cimalando 6 years ago
parent
commit
4669c67186
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      distrho/src/DistrhoPluginVST.cpp

+ 3
- 3
distrho/src/DistrhoPluginVST.cpp View File

@@ -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;



Loading…
Cancel
Save