From 5a3f9e6073680bf06edb4ce0aec5c7cd003de1c5 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 16 Sep 2011 15:29:04 +0200
Subject: [PATCH] More constness

---
 src/samplefunctional.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/samplefunctional.hh b/src/samplefunctional.hh
index 28188fdb..4a6427fd 100644
--- a/src/samplefunctional.hh
+++ b/src/samplefunctional.hh
@@ -33,7 +33,8 @@ class SampleFunctional {
 
   void descentDirection(const SmallVector x, SmallVector &ret) const {
     if (x == SmallVector(0.0)) {
-      SmallVector d = smoothGradient(x);
+      SmallVector const d = smoothGradient(x);
+
       // Decline of the smooth part in the negative gradient direction
       double smoothDecline = -(d * d);
       double nonlinearDecline =
-- 
GitLab