Getting rid of coverty warnings about NULL pointer dereferencing
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jan 2011 12:39:31 +0000 (12:39 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jan 2011 12:39:31 +0000 (12:39 +0000)
HLT/MUON/AliHLTMUONProcessor.cxx

index ce06323..81a241a 100644 (file)
@@ -377,7 +377,7 @@ int AliHLTMUONProcessor::FetchTMapFromCDB(const char* pathToEntry, TMap*& map) c
                );
                return -EPROTO;
        }
-       map = dynamic_cast<TMap*>(obj);
+       map = static_cast<TMap*>(obj);
        
        return 0;
 }
@@ -421,7 +421,7 @@ int AliHLTMUONProcessor::GetValueFromTMap(
                );
                return -EPROTO;
        }
-       value = dynamic_cast<TObjString*>(valueObj)->GetString();
+       value = static_cast<TObjString*>(valueObj)->GetString();
        
        return 0;
 }