Commit 2c54d448 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Use const reference instead of const copy in loop

parent 87412035
......@@ -19,7 +19,7 @@ gmvFile << nl;
forAll(lagrangianScalarNames, i)
{
const word name = lagrangianScalarNames[i];
const word& name = lagrangianScalarNames[i];
IOField<scalar> fld
(
......@@ -50,7 +50,7 @@ forAll(lagrangianScalarNames, i)
forAll(lagrangianVectorNames, i)
{
const word name = lagrangianVectorNames[i];
const word& name = lagrangianVectorNames[i];
IOField<vector> fld
(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment