Skip to content

Commit

Permalink
remove a few cppcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBoule committed Feb 26, 2024
1 parent 35501df commit d6566a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EqMaster/EqWidgets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ struct EqCurveAndGrid : TransparentWidget {


// text labels in grid lines
void textAtFreqAndDb(const DrawArgs &args, float freq, float dB, std::string text) {
void textAtFreqAndDb(const DrawArgs &args, float freq, float dB, const std::string& text) {
float logFreq = std::log10(freq);
float textX = math::rescale(logFreq, minLogFreq, maxLogFreq, 0.0f, box.size.x);
float textY = math::rescale(dB, minDb, maxDb, box.size.y, 0.0f);
Expand Down
2 changes: 1 addition & 1 deletion src/MixMaster/MixerMenus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ struct PercentQuantity : Quantity {
float *srcValue = NULL;
std::string label;

PercentQuantity(float *_srcValue, std::string _label) {
PercentQuantity(float *_srcValue, const std::string& _label) {
srcValue = _srcValue;
label = _label;
}
Expand Down

0 comments on commit d6566a5

Please sign in to comment.