# HG changeset patch # User John W. Eaton # Date 1212639784 14400 # Node ID 1b85fcb94c6a42aae2e2291d3948812b09691e0c # Parent f6fffa74b9b5f3d00eaaa8e3730697cb0c6e165d properties::update_normals: eliminate unnecessary use of references diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-06-05 John W. Eaton + + * graphics.cc (properties::update_normals): + Eliminate unnecessary use of references. + 2008-06-04 Shai Ayal * graphics.cc (axes::properties::set_defaults): Preserve position diff --git a/src/graphics.cc b/src/graphics.cc --- a/src/graphics.cc +++ b/src/graphics.cc @@ -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),