]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bugfix: fixing sequence of arguments for the default case with just the path as argument
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Sep 2010 21:02:44 +0000 (21:02 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Sep 2010 21:02:44 +0000 (21:02 +0000)
HLT/exa/makeComponentConfigurationObject.C

index 09f5e4365cc1efc1310a9147473146a2d9c0b624..2360afe3d41085bfa2814e48b31d1f5946559ff2 100644 (file)
@@ -85,7 +85,9 @@ void makeComponentConfigurationObject(const char* path,
 
   AliCDBPath cdbPath(path);
   AliCDBId cdbId(cdbPath, runmin, runmax);
-  AliCDBMetaData* cdbMetaData=pExisting?pExisting->GetMetaData():(new AliCDBMetaData);
+  AliCDBMetaData* cdbMetaData=NULL;
+  if (pExisting) cdbMetaData=pExisting->GetMetaData();
+  else cdbMetaData=new AliCDBMetaData;
   man->Put(obj, cdbId, cdbMetaData);
 }
 
@@ -94,7 +96,7 @@ void makeComponentConfigurationObject(const char* path, const char* param="",
                                      int runmin=0,
                                      int runmax=999999999)
 {
-  makeComponentConfigurationObject(path, param, NULL, cdbUri, runmin, runmax);
+  makeComponentConfigurationObject(path, NULL, param, cdbUri, runmin, runmax);
 }
 
 void makeComponentConfigurationObject(const char* path,