Skip to content

Commit 48f2217

Browse files
committed
Fix gcc8 catch-value "catch expection by value" warnings
1 parent e811c54 commit 48f2217

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/pal/pal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ QList<LabelPosition *> Pal::solveProblem( Problem *prob, bool displayAll )
468468
else
469469
prob->popmusic();
470470
}
471-
catch ( InternalException::Empty )
471+
catch ( InternalException::Empty & )
472472
{
473473
return QList<LabelPosition *>();
474474
}

src/core/pal/problem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void Problem::init_sol_falp()
290290
{
291291
list->insert( label, mLabelPositions.at( label )->getNumOverlaps() );
292292
}
293-
catch ( pal::InternalException::Full )
293+
catch ( pal::InternalException::Full & )
294294
{
295295
continue;
296296
}

0 commit comments

Comments
 (0)