summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2018-11-13 23:01:23 +0100
committerfalkTX <falktx@gmail.com>2018-11-13 23:01:23 +0100
commit7dfdbe133ad8663222f3a980b286b76366d4b81d (patch)
treec2429d5dd72ba5d6acb040df05c6da4ccf59443b /macosx
parent294115922e8a35421d0bb5d79b7e1e8589f29e1b (diff)
downloadjack2-7dfdbe133ad8663222f3a980b286b76366d4b81d.tar.gz
Cleanup some warnings
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat (limited to 'macosx')
-rw-r--r--macosx/coremidi/JackCoreMidiInputPort.mm4
-rw-r--r--macosx/coremidi/JackCoreMidiOutputPort.mm6
2 files changed, 5 insertions, 5 deletions
diff --git a/macosx/coremidi/JackCoreMidiInputPort.mm b/macosx/coremidi/JackCoreMidiInputPort.mm
index 7395c75e..4f44adf9 100644
--- a/macosx/coremidi/JackCoreMidiInputPort.mm
+++ b/macosx/coremidi/JackCoreMidiInputPort.mm
@@ -51,9 +51,9 @@ JackCoreMidiInputPort::JackCoreMidiInputPort(double time_ratio,
JackCoreMidiPort(time_ratio)
{
thread_queue = new JackMidiAsyncQueue(max_bytes, max_messages);
- std::auto_ptr<JackMidiAsyncQueue> thread_queue_ptr(thread_queue);
+ std::unique_ptr<JackMidiAsyncQueue> thread_queue_ptr(thread_queue);
write_queue = new JackMidiBufferWriteQueue();
- std::auto_ptr<JackMidiBufferWriteQueue> write_queue_ptr(write_queue);
+ std::unique_ptr<JackMidiBufferWriteQueue> write_queue_ptr(write_queue);
sysex_buffer = new jack_midi_data_t[max_bytes];
write_queue_ptr.release();
thread_queue_ptr.release();
diff --git a/macosx/coremidi/JackCoreMidiOutputPort.mm b/macosx/coremidi/JackCoreMidiOutputPort.mm
index 9fcee2a4..f62ebaff 100644
--- a/macosx/coremidi/JackCoreMidiOutputPort.mm
+++ b/macosx/coremidi/JackCoreMidiOutputPort.mm
@@ -36,11 +36,11 @@ JackCoreMidiOutputPort::JackCoreMidiOutputPort(double time_ratio,
JackCoreMidiPort(time_ratio)
{
read_queue = new JackMidiBufferReadQueue();
- std::auto_ptr<JackMidiBufferReadQueue> read_queue_ptr(read_queue);
+ std::unique_ptr<JackMidiBufferReadQueue> read_queue_ptr(read_queue);
thread_queue = new JackMidiAsyncQueue(max_bytes, max_messages);
- std::auto_ptr<JackMidiAsyncQueue> thread_queue_ptr(thread_queue);
+ std::unique_ptr<JackMidiAsyncQueue> thread_queue_ptr(thread_queue);
thread = new JackThread(this);
- std::auto_ptr<JackThread> thread_ptr(thread);
+ std::unique_ptr<JackThread> thread_ptr(thread);
snprintf(semaphore_name, sizeof(semaphore_name), "coremidi_%p", this);
thread_queue_semaphore = sem_open(semaphore_name, O_CREAT, 0777, 0);
if (thread_queue_semaphore == (sem_t *) SEM_FAILED) {