Skip to content

Commit

Permalink
fix coverity issue 1076079 (pass by ref), re #11061
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Feb 15, 2015
1 parent 7cac90b commit ceb348e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ class DLLExport SaveIsawUB : public API::Algorithm {
void exec();

// Calculates the error in the volume
double getErrorVolume(Geometry::OrientedLattice lattice);
double getErrorVolume(const Geometry::OrientedLattice &lattice);
};

} // namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Crystal/src/SaveIsawUB.cpp
Expand Up @@ -54,7 +54,7 @@ void SaveIsawUB::init() {
"Path to an ISAW-style UB matrix text file.");
}

double SaveIsawUB::getErrorVolume(OrientedLattice lattice) {
double SaveIsawUB::getErrorVolume(const OrientedLattice &lattice) {
double Volume;
double latticeParams[6] = {lattice.a(), lattice.b(), lattice.c(),
lattice.alpha(), lattice.beta(), lattice.gamma()};
Expand Down

0 comments on commit ceb348e

Please sign in to comment.