diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 23:20:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 23:20:45 +0100 |
commit | 228815993b4ecc31a345628fd85e6b75e564ecfe (patch) | |
tree | 06515a5e069dbfee55683767046a288f73719c43 /src/PatchageCanvas.cpp | |
parent | f95ca1978dd463d1e6c640bb00d4d420ccb9d593 (diff) | |
download | patchage-228815993b4ecc31a345628fd85e6b75e564ecfe.tar.gz patchage-228815993b4ecc31a345628fd85e6b75e564ecfe.tar.bz2 patchage-228815993b4ecc31a345628fd85e6b75e564ecfe.zip |
Reduce use of raw new and delete
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index bb9c484..27c860a 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -88,7 +88,7 @@ PatchageCanvas::create_port(Patchage& patchage, // Determine the module type to place the port on in case of splitting SignalDirection module_type = SignalDirection::duplex; - if (patchage.conf()->get_module_split(client_name, info.is_terminal)) { + if (patchage.conf().get_module_split(client_name, info.is_terminal)) { module_type = info.direction; } @@ -116,7 +116,7 @@ PatchageCanvas::create_port(Patchage& patchage, port_name, info.label, info.direction == SignalDirection::input, - patchage.conf()->get_port_color(info.type), + patchage.conf().get_port_color(info.type), patchage.show_human_names(), info.order); |