correcting compilation warnings and cleaning dead code
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Aug 2011 18:24:20 +0000 (18:24 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Aug 2011 18:24:20 +0000 (18:24 +0000)
HLT/TRD/AliHLTTRDGlobalMonitorComponent.cxx
HLT/TRD/AliHLTTRDMonitorComponent.cxx

index f82a66e..1fb9345 100644 (file)
@@ -102,7 +102,7 @@ AliHLTComponent* AliHLTTRDGlobalMonitorComponent::Spawn()
   return new AliHLTTRDGlobalMonitorComponent;
 }
 
-int AliHLTTRDGlobalMonitorComponent::DoInit( int argc, const char** argv )
+int AliHLTTRDGlobalMonitorComponent::DoInit( int /*argc*/, const char** /*argv*/ )
 {
   fHistArray = new TObjArray(25);
   if(!fHistArray)
@@ -389,7 +389,7 @@ int AliHLTTRDGlobalMonitorComponent::DoEvent( const AliHLTComponentEventData& /*
   return iResult;
 }
 
-int AliHLTTRDGlobalMonitorComponent::Configure(const char* arguments)
+int AliHLTTRDGlobalMonitorComponent::Configure(const char* /*arguments*/)
 {
   // see header file for class documentation
   int iResult=0;
@@ -397,7 +397,7 @@ int AliHLTTRDGlobalMonitorComponent::Configure(const char* arguments)
   return iResult;
 }
 
-int AliHLTTRDGlobalMonitorComponent::Reconfigure(const char* cdbEntry, const char* /*chainId*/)
+int AliHLTTRDGlobalMonitorComponent::Reconfigure(const char* /*cdbEntry*/, const char* /*chainId*/)
 {
   // see header file for class documentation
   int iResult=0;
index 234eee4..79372d6 100644 (file)
@@ -151,8 +151,8 @@ int AliHLTTRDMonitorComponent::DoInit( int /*argc*/, const char** /*argv*/ )
   //}
 
   // implement the component initialization
+  // Matthias 2011-08-24: this has to go into ScanConfigurationArgument
   do {
-    if (iResult<0) break;
 
     fRawReaderMem = new AliRawReaderMemory; 
     if (!fRawReaderMem) {
@@ -600,13 +600,11 @@ int AliHLTTRDMonitorComponent::DoEvent(const AliHLTComponentEventData& /*evtData
                       (kAliHLTDataTypeTObject | kAliHLTDataOriginTRD), 
                       pBlock->fSpecification);
 
-    if (iResult != 0)                                                                                                                                                
-      break;  
+    if (iResult < 0)                                  
+      break;
                       
     // clear the rawreader
     fRawReaderMem->ClearBuffers();    
-    if (iResult != 0)
-      break;
   }
 
   return iResult;