Changeset 19989 for trunk/FACT++


Ignore:
Timestamp:
08/31/20 22:35:15 (4 years ago)
Author:
tbretz
Message:
Fixes: warning: catching polymorphic type ‘class std::runtime_error’ by value [-Wcatch-value=]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r19978 r19989  
    573573        inputFile = reopen && fIsDrsCalibration ? new zfits(file, "Events") :  new factfits(file, "Events");
    574574    }
    575     catch (std::runtime_error e)
     575    catch (const std::runtime_error &e)
    576576    {
    577577        cout << "Something went wrong while loading fits. Aborting: " << e.what() << endl;
     
    611611            }
    612612        }
    613         catch (std::runtime_error e)
     613        catch (const std::runtime_error &e)
    614614        {
    615615            cout << e.what() << endl;
Note: See TracChangeset for help on using the changeset viewer.