# HG changeset patch # User Chris Cannam # Date 1526379109 -3600 # Node ID 7da68349a0c5eb79ded55ebe309cea07af108f1b # Parent f03bc1d38cac69d5ebfecec438010342640f2720 Fix compiler warning diff -r f03bc1d38cac -r 7da68349a0c5 audio/AudioGenerator.cpp --- a/audio/AudioGenerator.cpp Thu Apr 19 13:17:42 2018 +0100 +++ b/audio/AudioGenerator.cpp Tue May 15 11:11:49 2018 +0100 @@ -81,7 +81,7 @@ try { m_sampleDir = TempDirectory::getInstance()->getSubDirectoryPath("samples"); - } catch (DirectoryCreationFailed f) { + } catch (const DirectoryCreationFailed &f) { cerr << "WARNING: AudioGenerator::initialiseSampleDir:" << " Failed to create temporary sample directory" << endl;