avoid a few uneeded copies
This commit is contained in:
parent
9bf6abd988
commit
04c1808703
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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) {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue