Skip to content
Snippets Groups Projects
Commit fa7194b1 authored by Andrew Heather's avatar Andrew Heather
Browse files

using const-ref for word

parent f27c151a
Branches
Tags
No related merge requests found
......@@ -186,7 +186,8 @@ Foam::label Foam::CompositionModel<CloudType>::globalCarrierId
{
forAll(carrierThermo_.composition().species(), i)
{
word carrierSpecieName = carrierThermo_.composition().species()[i];
const word& carrierSpecieName =
carrierThermo_.composition().species()[i];
if (cmptName == carrierSpecieName)
{
return i;
......
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