]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed coverity issues
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Apr 2012 12:18:24 +0000 (12:18 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Apr 2012 12:18:24 +0000 (12:18 +0000)
FMD/AliFMDSurveyToAlignObjs.cxx

index 1e7f2eb872f0aad62cdaad53cb99aa43805eda03..cbfb403e71613b51b30541a204c1a856cfcdb916 100644 (file)
@@ -318,6 +318,8 @@ namespace {
   {
     static Double_t off = 0;
     return off;
+
+#if 0
     if (off != 0) return off;
     
     const char* lidN = "FMD1_lid_mat0";
@@ -333,6 +335,7 @@ namespace {
     off                  = lidZ-3.3;
     
     return off;
+#endif
   }
 }
 
@@ -670,8 +673,7 @@ AliFMDSurveyToAlignObjs::FillDefaultAlignObjs()
     const char* side   = sides;
     while (*side) { 
       TString path = TString::Format("FMD/FMD%d_%c", d, *side);
-      AliAlignObjParams* p = FindAlignObj(path);
-      if (!p) p = CreateDefaultAlignObj(path, 0);
+      if (!FindAlignObj(path)) CreateDefaultAlignObj(path, 0);
 
       const char halves[] = { 'I', d == 1 ? '\0' : 'O', 0 };
       const char*  half = halves;