From 5f8720dae6efe34452590f8f719406c79b4ae3b6 Mon Sep 17 00:00:00 2001 From: oparviai Date: Tue, 29 Aug 2017 16:10:45 +0000 Subject: [PATCH] Added & to catch() clause to handle exception as reference --- source/SoundStretch/RunParameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SoundStretch/RunParameters.cpp b/source/SoundStretch/RunParameters.cpp index f68f0da..0f2e125 100644 --- a/source/SoundStretch/RunParameters.cpp +++ b/source/SoundStretch/RunParameters.cpp @@ -267,7 +267,7 @@ void RunParameters::parseSwitchParam(const string &str) { goalBPM = parseSwitchValue(str); } - catch (const runtime_error) + catch (const runtime_error &) { // illegal or missing bpm value => just calculate bpm goalBPM = 0;