avoid a few uneeded copies

This commit is contained in:
Dane Springmeyer 2013-07-16 00:36:01 -04:00
parent 9bf6abd988
commit 04c1808703
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ class filter_featureset : public Featureset
typedef T filter_type;
public:
filter_featureset(featureset_ptr fs, filter_type const& filter)
filter_featureset(featureset_ptr const& fs, filter_type const& filter)
: fs_(fs), filter_(filter) {}
feature_ptr next()

View file

@ -199,7 +199,7 @@ inline bool point_on_path(double x,double y,Iter start,Iter end, double tol)
// filters
struct filter_in_box
{
box2d<double> box_;
box2d<double> const& box_;
explicit filter_in_box(box2d<double> const& box)
: box_(box) {}