Commit 31fc5393 authored by Lynn Garren's avatar Lynn Garren
Browse files

supply a default to switch for preferred C++ behavior

parent 12b1c30c
2014-11-20 Lynn Garren <garren@fnal.gov>
* Vector/ThreeVector.icc: inline Hep3Vector::operator () (int i)
==============================
18.08.14 Release CLHEP-2.2.0.3
==============================
......
......@@ -47,8 +47,9 @@ inline double Hep3Vector::operator () (int i) const {
return y();
case Z:
return z();
default:
return 0.;
}
return 0.;
}
inline double & Hep3Vector::operator () (int i) {
......@@ -60,8 +61,9 @@ inline double & Hep3Vector::operator () (int i) {
return dy;
case Z:
return dz;
default:
return dummy;
}
return dummy;
}
// --------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment