Mercurial > octave-nkf
changeset 7868:1b85fcb94c6a
properties::update_normals: eliminate unnecessary use of references
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Jun 2008 00:23:04 -0400 |
parents | f6fffa74b9b5 |
children | e6d5532f760e |
files | src/ChangeLog src/graphics.cc |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri May 02 16:52:41 2008 +0200 +++ b/src/ChangeLog Thu Jun 05 00:23:04 2008 -0400 @@ -1,3 +1,8 @@ +2008-06-05 John W. Eaton <jwe@octave.org> + + * graphics.cc (properties::update_normals): + Eliminate unnecessary use of references. + 2008-06-04 Shai Ayal <shaiay@users.sourceforge.net> * graphics.cc (axes::properties::set_defaults): Preserve position
--- a/src/graphics.cc Fri May 02 16:52:41 2008 +0200 +++ b/src/graphics.cc Thu Jun 05 00:23:04 2008 -0400 @@ -3449,9 +3449,9 @@ j3 = j+1; } - double& nx = n(j, i, 0); - double& ny = n(j, i, 1); - double& nz = n(j, i, 2); + double nx = n(j,i,0); + double ny = n(j,i,1); + double nz = n(j,i,2); cross_product (x(j3,i)-x(j2,i), y(j+1,i2)-y(j,i2), z(j+1,i)-z(j,i), x(j2,i+1)-x(j2,i), y(j,i3)-y(j,i2), z(j,i+1)-z(i,j),