Commit 2972c9fe authored by Jan Möbius's avatar Jan Möbius
Browse files

Pass variable as const ref

parent 42b87d4f
......@@ -86,7 +86,7 @@ public: //---------------------------------------------------------------------
public: //---------------------------------------------------------------------
BSPImplT(const Traits& _traits, const Scalar _infinity = std::numeric_limits<Scalar>::infinity()) :
BSPImplT(const Traits& _traits, const Scalar& _infinity = std::numeric_limits<Scalar>::infinity()) :
BSPCore(_traits),
infinity_(_infinity) {}
~BSPImplT() {}
......
......@@ -76,7 +76,7 @@ public:
typedef BSPImplT< TriangleBSPCoreT<BSPTraits> > Base;
typedef typename Base::Scalar Scalar;
TriangleBSPT(const BSPTraits& _traits,
const Scalar _infinity = std::numeric_limits<Scalar>::infinity()) : Base(_traits, _infinity) {}
const Scalar& _infinity = std::numeric_limits<Scalar>::infinity()) : Base(_traits, _infinity) {}
};
//== CLASS DEFINITION =========================================================
......
Supports Markdown
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