From 3cafd031292b49e8d833a81c30a2e9895d16baff Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Fri, 29 May 2015 15:14:08 +0000
Subject: [PATCH]  fixed _Unicode to not have quotation marks

---
 examples/SimpleDetector/src/ZPlanarTracker_geo.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/SimpleDetector/src/ZPlanarTracker_geo.cpp b/examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
index 494d76b1f..d7e9164ad 100644
--- a/examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
+++ b/examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
@@ -42,7 +42,7 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens)  {
 
   bool isStripDetector = false ;
   try {
-    isStripDetector = x_det.attr<bool>( _Unicode("isStripDetector") ) ;
+    isStripDetector = x_det.attr<bool>( _Unicode(isStripDetector) ) ;
 
   } catch(std::runtime_error ){}
 
@@ -57,7 +57,7 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens)  {
     xml_comp_t x_ladder(  x_layer.child( _U(ladder)  ));
     
     int layer_id = x_layer.id();
-    int nLadders = x_layer.attr<double>(  _Unicode("nLadders") ) ;
+    int nLadders = x_layer.attr<double>(  _Unicode(nLadders) ) ;
 
     double dphi = 2.*M_PI / double(nLadders);
 
-- 
GitLab