Skip to content

Commit

Permalink
Fix gcc8 catch-value "catch expection by value" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 26, 2018
1 parent e811c54 commit 48f2217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/pal/pal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ QList<LabelPosition *> Pal::solveProblem( Problem *prob, bool displayAll )
else
prob->popmusic();
}
catch ( InternalException::Empty )
catch ( InternalException::Empty & )
{
return QList<LabelPosition *>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/pal/problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void Problem::init_sol_falp()
{
list->insert( label, mLabelPositions.at( label )->getNumOverlaps() );
}
catch ( pal::InternalException::Full )
catch ( pal::InternalException::Full & )
{
continue;
}
Expand Down

0 comments on commit 48f2217

Please sign in to comment.