From cb2b4b33396a69319d9adc19730bc7a5049cd82e Mon Sep 17 00:00:00 2001 From: MarcBoule Date: Mon, 26 Feb 2024 19:23:41 -0500 Subject: [PATCH] fix more small cppcheck warnings --- src/ShapeMaster/Channel.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ShapeMaster/Channel.hpp b/src/ShapeMaster/Channel.hpp index 2be88ca..d418294 100644 --- a/src/ShapeMaster/Channel.hpp +++ b/src/ShapeMaster/Channel.hpp @@ -348,15 +348,15 @@ class Channel { void toggleSidechainLowTrig() { playHead.toggleSidechainLowTrig(); } - void setPresetPath(std::string newPresetPath) { + void setPresetPath(const std::string& newPresetPath) { presetPath = newPresetPath; shapePath = ""; } - void setShapePath(std::string newShapePath) { + void setShapePath(const std::string& newShapePath) { shapePath = newShapePath; presetPath = ""; } - void setChanName(std::string newChanName) { + void setChanName(const std::string& newChanName) { chanName = newChanName; } void updateChannelActive() {