Skip to content

Commit

Permalink
More methods which could be const made const
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Nov 27, 2023
1 parent 463e36e commit 8e73925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Field/src/MagFieldFast.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ bool MagFieldFast::Field(const math_utils::Point3D<double> xyz, double bxyz[3])
bool MagFieldFast::GetSegment(float x, float y, float z, int& zSeg, int& rSeg, int& quadrant) const
{
// get segment of point location
const float zGridSpaceInv = 1.f / (kSolZMax * 2 / kNSolZRanges);
const float zGridSpaceInv = 1.f / (kSolZMax * 2 / (float)kNSolZRanges);
zSeg = -1;
if (z < kSolZMax) {
if (z > -kSolZMax) {
Expand Down
4 changes: 2 additions & 2 deletions Utilities/DataCompression/test/DataGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ class DataGenerator
// pointer operator->() const {return &mValue;}
// reference operator[](size_type n) const;

bool operator==(const self_type& other) { return mCount == other.mCount; }
bool operator!=(const self_type& other) { return not(*this == other); }
bool operator==(const self_type& other) const { return mCount == other.mCount; }
bool operator!=(const self_type& other) const { return not(*this == other); }

private:
const ContainerT& mParent;
Expand Down

0 comments on commit 8e73925

Please sign in to comment.