Skip to content

Commit

Permalink
Refs #9200 remove cppcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Mar 27, 2014
1 parent 4e76235 commit aceffe8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Code/Mantid/Framework/Geometry/src/Crystal/ScalarUtils.cpp
Expand Up @@ -140,14 +140,13 @@ std::vector<ConventionalCell> ScalarUtils::GetCells(
const std::string & centering,
bool allowPermutations)
{
double angle_tolerance = 2.0;
double length_factor = 1.05;

std::vector<ConventionalCell> result;

std::vector<DblMatrix> UB_list;
if (allowPermutations)
{
double angle_tolerance = 2.0;
double length_factor = 1.05;
UB_list = GetRelatedUBs( UB, length_factor, angle_tolerance );
}
else
Expand Down Expand Up @@ -236,8 +235,6 @@ ConventionalCell ScalarUtils::GetCellForForm( const DblMatrix & UB,
bool allowPermutations)
{
ConventionalCell info( UB );
double angle_tolerance = 2.0;
double length_factor = 1.05;
ReducedCell form_0;
ReducedCell form;

Expand All @@ -247,6 +244,8 @@ ConventionalCell ScalarUtils::GetCellForForm( const DblMatrix & UB,
std::vector<DblMatrix> UB_list;
if (allowPermutations)
{
double angle_tolerance = 2.0;
double length_factor = 1.05;
UB_list = GetRelatedUBs( UB, angle_tolerance, length_factor );
}
else
Expand Down

0 comments on commit aceffe8

Please sign in to comment.