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
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,8 @@ Foam::label Foam::CompositionModel<CloudType>::globalCarrierId ...@@ -186,7 +186,8 @@ Foam::label Foam::CompositionModel<CloudType>::globalCarrierId
{ {
forAll(carrierThermo_.composition().species(), i) forAll(carrierThermo_.composition().species(), i)
{ {
word carrierSpecieName = carrierThermo_.composition().species()[i]; const word& carrierSpecieName =
carrierThermo_.composition().species()[i];
if (cmptName == carrierSpecieName) if (cmptName == carrierSpecieName)
{ {
return i; return i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment