Skip to content

Commit 77a234f

Browse files
committed
ref + respect alphabetical order
1 parent 2140b82 commit 77a234f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Convex_hull_3/include/CGAL/Convex_hull_hierarchy_3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct Convex_hull_hierarchy_3{
205205
//If maxlevel is small, we simply go through all its vertices
206206
for(auto vh=++(vertices(sm).begin()); vh!=vertices(sm).end(); ++vh){
207207
vertex_descriptor v = *vh;
208-
auto p = converter(get(vpm, get(to_base_maps[level], v)));
208+
const auto& p = converter(get(vpm, get(to_base_maps[level], v)));
209209
if(csp(p_max, p, dir)==SMALLER){
210210
p_max=p;
211211
argmax=v;
@@ -231,7 +231,7 @@ struct Convex_hull_hierarchy_3{
231231
do{
232232
is_local_max=true;
233233
for(vertex_descriptor v: vertices_around_target(argmax ,csm)){
234-
auto p = converter(get(vpm, get(cbase, v)));
234+
const auto& p = converter(get(vpm, get(cbase, v)));
235235
if(csp(p_max, p, dir)==SMALLER){
236236
p_max = p;
237237
argmax = v;

Convex_hull_3/include/CGAL/extreme_point_3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ extreme_point_3(const PointRange& r, const Direction &dir, const NamedParameters
110110
typename PointRange::const_iterator argmax=r.begin();
111111
auto p_max = converter(get(point_map, *argmax));
112112
for(typename PointRange::const_iterator it=++r.begin(); it!=r.end(); ++it){
113-
auto p = converter(get(point_map, *it));
113+
const auto& p = converter(get(point_map, *it));
114114
if(csp(p_max, p, dir)==SMALLER){
115115
p_max=p;
116116
argmax=it;
@@ -205,7 +205,7 @@ extreme_vertex_3(const Graph& g, const Direction &dir, const NamedParameters &np
205205
do{
206206
is_local_max=true;
207207
for(auto v: vertices_around_target(argmax, g)){
208-
auto p = converter(get(point_map, v));
208+
const auto& p = converter(get(point_map, v));
209209
if(csp(p_max, p, dir)==SMALLER){
210210
p_max = p;
211211
argmax = v;

Kernel_23/include/CGAL/Kernel/interface_macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ CGAL_Kernel_pred(Compare_power_distance_2,
112112
compare_power_distance_2_object)
113113
CGAL_Kernel_pred(Compare_power_distance_3,
114114
compare_power_distance_3_object)
115-
CGAL_Kernel_pred(Compare_signed_distance_to_line_2,
116-
compare_signed_distance_to_line_2_object)
117115
CGAL_Kernel_pred(Compare_projection_along_direction_3,
118116
compare_projection_along_direction_3_object)
117+
CGAL_Kernel_pred(Compare_signed_distance_to_line_2,
118+
compare_signed_distance_to_line_2_object)
119119
CGAL_Kernel_pred(Compare_slope_2,
120120
compare_slope_2_object)
121121
CGAL_Kernel_pred(Compare_slope_3,

0 commit comments

Comments
 (0)