From 1a75d9979f14588f5688e60eb4818599da9e686a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Garc=C3=ADa=20Montoro?= Date: Mon, 17 Apr 2017 11:17:13 +0200 Subject: [PATCH] Modify comments in shape_line_chain.h that described the old reference-wise behaviour of SEG class --- include/geometry/shape_line_chain.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/geometry/shape_line_chain.h b/include/geometry/shape_line_chain.h index df57d10783..599fdc3865 100644 --- a/include/geometry/shape_line_chain.h +++ b/include/geometry/shape_line_chain.h @@ -3,6 +3,7 @@ * * Copyright (C) 2013 CERN * @author Tomasz Wlostowski + * Copyright (C) 2013-2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -190,11 +191,10 @@ public: /** * Function Segment() * - * Returns a segment referencing to the segment (index) in the line chain. - * Modifying ends of the returned segment will modify corresponding points in the line chain. + * Returns a copy of the aIndex-th segment in the line chain. * @param aIndex: index of the segment in the line chain. Negative values are counted from * the end (i.e. -1 means the last segment in the line chain) - * @return SEG referenced to given segment in the line chain + * @return SEG - aIndex-th segment in the line chain */ SEG Segment( int aIndex ) { @@ -210,10 +210,10 @@ public: /** * Function CSegment() * - * Returns a read-only segment referencing to the segment (index) in the line chain. + * Returns a constant copy of the aIndex-th segment in the line chain. * @param aIndex: index of the segment in the line chain. Negative values are counted from * the end (i.e. -1 means the last segment in the line chain) - * @return SEG referenced to given segment in the line chain + * @return const SEG - aIndex-th segment in the line chain */ const SEG CSegment( int aIndex ) const {