]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix coverity complaints for Alexander
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2012 14:32:17 +0000 (14:32 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2012 14:32:17 +0000 (14:32 +0000)
PWGLF/FORWARD/analysis2/trains/TrainSetup.C
PWGLF/FORWARD/analysis2/trains/runMain.cxx

index 9380cfa96396fcc9bef20dfc5743f369f332cc29..e351375a4bed6c49ac901d5703d9aa1e0da0b9e8 100644 (file)
@@ -847,7 +847,8 @@ protected:
   //------------------------------------------------------------------
   static void PrintFieldName(std::ostream& o, const char* name)
   {
-    o << "  " << std::left << std::setw(25) << name << ": " << std::flush;
+    o << "  " << std::left << std::setw(25) << name << ": " 
+      << std::right << std::flush;
   }
   //------------------------------------------------------------------
   static void PrintFieldList(std::ostream& o, const char* name, 
@@ -2438,12 +2439,13 @@ protected:
     }
     
     TGridCollection* collection = reinterpret_cast<TGridCollection*>(ret);
+#if 0
     if (!collection) { 
       Error("CreateChainFromXML", "Cannot create AliEn collection from "
            "XML file %s", xmlFile);
       return 0;
     }
-
+#endif
     TChain* chain = new TChain(treeName);
     collection->Reset();
     while (collection->Next()) chain->Add(collection->GetTURL(""));
@@ -2614,7 +2616,7 @@ public:
       o << "  " << std::left << std::setw(30) << fName << ": ";
       if (fArg.IsNull()) o << (IsSet() ? "true" : "false");
       else               o << fValue;
-      o << std::endl;
+      o << std::right << std::endl;
     }
     /** 
      * Save the setting 
index d52b62121e3575485d55512a99d0c5763ab46829..e817368409f85a14b57c9901c3e83d83d1e0acb6 100644 (file)
@@ -159,7 +159,8 @@ void AppendPath(const char* dir)
  */
 void PrintFakeOption(std::ostream& o, const char* opt, const char* desc)
 {
-  o << "  --" << std::left << std::setw(30) << opt << " " << desc << std::endl;
+  o << "  --" << std::left << std::setw(30) << opt << " " << desc 
+    << std::right << std::endl;
 }
 
 /**