Commit 8e818e3c authored by Roland Levillain's avatar Roland Levillain
Browse files

Let neighborhood() return a const reference instead of a copy.

	* oln/automatic/image_having_neighborhood.hh (impl_neighborhood)
	* oln/core/abstract/image/neighborhood/hierarchy.hh
	(image_having_neighborhood::neighborhood): Return a const
	reference instead of a copy.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@576 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 3814dc0f
2006-09-26 Roland Levillain <roland@lrde.epita.fr>
Let neighborhood() return a const reference instead of a copy.
* oln/automatic/image_having_neighborhood.hh (impl_neighborhood)
* oln/core/abstract/image/neighborhood/hierarchy.hh
(image_having_neighborhood::neighborhood): Return a const
reference instead of a copy.
2006-09-26 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
Add mapimage type and update.
......
......@@ -57,7 +57,7 @@ namespace oln
public:
/// Accessor delegation.
neighborhood_t impl_neighborhood() const
const neighborhood_t& impl_neighborhood() const
{
return this->exact().delegate().neighborhood();
}
......
......@@ -74,7 +74,7 @@ namespace oln
// stc_virtual_typedef(bkd_niter);
};
neighborhood_t neighborhood() const
const neighborhood_t& neighborhood() const
{
return this->topo().neighborhood();
}
......
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