mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
using const-ref for word
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user