STYLE: drop 'goto' in favour of returning a value

This commit is contained in:
Mark Olesen
2011-07-08 16:21:21 +02:00
parent c2d99767a2
commit 6c9dacd229

View File

@ -286,7 +286,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
@ -296,7 +296,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
}
@ -316,7 +316,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
@ -326,7 +326,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
}
@ -346,7 +346,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
@ -356,7 +356,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
}
@ -374,7 +374,7 @@ Foam::fileNameList Foam::findEtcFiles
results.append(fullName);
if (findFirst)
{
goto DONE;
return results;
}
}
}
@ -393,7 +393,6 @@ Foam::fileNameList Foam::findEtcFiles
}
}
DONE:
// Return list of matching paths or empty list if none found
return results;
}