diff --git a/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.cxx b/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.cxx index 2f8276783c50d467e10a2bfb73e71a68c413a345..b3aa18ce1a8cf7d0fa27fe14d14aa3ec7c1c245a 100755 --- a/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.cxx +++ b/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.cxx @@ -60,7 +60,7 @@ ToyDetectorTool::create() // GeoPhysVol *world=&*theExpt->getPhysVol(); theToyFactory.create(world); - } catch (std::bad_alloc) { + } catch (const std::bad_alloc&) { log << MSG::FATAL << "Could not create new ToyDetectorNode!" << endmsg; return StatusCode::FAILURE; }