selector.cc: 2 * bad catch type ?

Bug #1702119 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enblend
Fix Committed
Low
Christoph Spiel

Bug Description

selector.cc:490:21: warning: catching polymorphic type 'class std::invalid_argument' by value [-Wcatch-value=]

selector.cc:494:21: warning: catching polymorphic type 'class std::out_of_range' by value [-Wcatch-value=]

Suggest catch polymorphic types by const reference, not value.

Revision history for this message
Christoph Spiel (cspiel) wrote :

Fixed in rev 1c815a028afc.

Changed in enblend:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Christoph Spiel (cspiel)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.