From 57e7fdc5334f9089269296176f9184563bfcdef1 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 31 Jul 2023 12:38:35 +0800 Subject: [PATCH] MidiApple.cpp: fix getName to allow build with GCC (#6791) Fixes: https://github.com/LMMS/lmms/issues/6785 --- src/core/midi/MidiApple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/midi/MidiApple.cpp b/src/core/midi/MidiApple.cpp index 01836c50b..4105f18f1 100644 --- a/src/core/midi/MidiApple.cpp +++ b/src/core/midi/MidiApple.cpp @@ -403,7 +403,7 @@ void MidiApple::midiInClose( MIDIEndpointRef reference ) -char *getName( MIDIObjectRef &object ) +char *getName( const MIDIObjectRef &object ) { // Returns the name of a given MIDIObjectRef as char * CFStringRef name = nullptr;