From 451bb1caf1837b7df8c45d57d1875bfd80eeda88 Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Wed, 17 Jun 2015 19:25:56 +0000
Subject: [PATCH] Please see doc/release.notes.

---
 DDCore/src/plugins/LCDDHelperTest.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/DDCore/src/plugins/LCDDHelperTest.cpp b/DDCore/src/plugins/LCDDHelperTest.cpp
index 45e043aad..0c56006ce 100644
--- a/DDCore/src/plugins/LCDDHelperTest.cpp
+++ b/DDCore/src/plugins/LCDDHelperTest.cpp
@@ -45,9 +45,11 @@ namespace  {
       LCDDHelper h(&lcdd);
       const char* nam = argc>1 ? argv[1]+1 : "SiVertexEndcap";
       printSD(h,nam);
-      DetElement de = lcdd.detector(nam);
-      walkSD(h,de);
+      walkSD(h,lcdd.detector(nam));
     }
+    /// Default destructor
+    virtual ~LCDDHelperTest() {}
+
     void walkSD(LCDDHelper h, DetElement de)  const {
       printSD(h,de);
       for(DetElement::Children::const_iterator i=de.children().begin(); i!=de.children().end(); ++i)  {
@@ -68,8 +70,6 @@ namespace  {
 	       sd.ptr() ? sd.name() : "????");
 
     }
-    /// Default destructor
-    virtual ~LCDDHelperTest() {}
     /// Action routine to execute the test
     static long run(LCDD& lcdd,int argc,char** argv)   {
       LCDDHelperTest test(lcdd,argc,argv);
-- 
GitLab