diff --git a/applications/test/PackedList1/Test-PackedList1.C b/applications/test/PackedList1/Test-PackedList1.C index 81a212ddaa..7e6d233820 100644 --- a/applications/test/PackedList1/Test-PackedList1.C +++ b/applications/test/PackedList1/Test-PackedList1.C @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) << "(non-const)\n"; } } - catch (Foam::error& err) + catch (const Foam::error& err) { Info<< "Failed (expected) " << err << nl << endl; } @@ -205,7 +205,7 @@ int main(int argc, char *argv[]) Info<< "[20] is false, as expected for const-access\n"; } } - catch (Foam::error& err) + catch (const Foam::error& err) { Info<< "Failed (expected) " << err << nl << endl; } @@ -275,7 +275,7 @@ int main(int argc, char *argv[]) list1[16] = 5; list1[36] = list1.max_value; } - catch (Foam::error& err) + catch (const Foam::error& err) { Info<< "Failed (expected) " << err << nl << endl; diff --git a/applications/test/Random/Test-Random.C b/applications/test/Random/Test-Random.C index a0635488b0..b4d4eb1259 100644 --- a/applications/test/Random/Test-Random.C +++ b/applications/test/Random/Test-Random.C @@ -201,7 +201,7 @@ int main(int argc, char *argv[]) Info<<"Random position(10,5): " << Random().position