]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bugfix: using correct kAliHLTVoidDataSpec istead of 0x0 for initialization of data...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Dec 2009 12:21:38 +0000 (12:21 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Dec 2009 12:21:38 +0000 (12:21 +0000)
bug https://savannah.cern.ch/bugs/?60082

HLT/BASE/AliHLTDomainEntry.cxx

index 98b56d925690b1835114917ab1204c0d2cf0e435..72406db0bc2b3c1c09ee693938cacb326b55c5bd 100644 (file)
@@ -45,7 +45,7 @@ AliHLTDomainEntry::AliHLTDomainEntry() :
   fExclude(kFALSE),
   fUseSpec(kFALSE),
   fType(kAliHLTVoidDataType),
-  fSpecification(0x0)
+  fSpecification(kAliHLTVoidDataSpec)
 {
   // Default constructor.
 }
@@ -66,7 +66,7 @@ AliHLTDomainEntry::AliHLTDomainEntry(const AliHLTComponentDataType& type) :
   fExclude(kFALSE),
   fUseSpec(kFALSE),
   fType(type),
-  fSpecification(0x0)
+  fSpecification(kAliHLTVoidDataSpec)
 {
   // Constructs a domain entry with a particular data type and any specification.
   // See header file for more information.
@@ -78,7 +78,7 @@ AliHLTDomainEntry::AliHLTDomainEntry(const char* blocktype, const char* origin)
   fExclude(kFALSE),
   fUseSpec(kFALSE),
   fType(),
-  fSpecification(0x0)
+  fSpecification(kAliHLTVoidDataSpec)
 {
   // Constructs a domain entry with a particular data type and any specification.
   // See header file for more information.
@@ -142,7 +142,7 @@ AliHLTDomainEntry::AliHLTDomainEntry(Bool_t exclude, const AliHLTComponentDataTy
   fExclude(exclude),
   fUseSpec(kFALSE),
   fType(type),
-  fSpecification(0x0)
+  fSpecification(kAliHLTVoidDataSpec)
 {
   // Constructs a domain entry with the given data type, any specification
   // and the exclude flag set.
@@ -155,7 +155,7 @@ AliHLTDomainEntry::AliHLTDomainEntry(Bool_t exclude, const char* blocktype, cons
   fExclude(exclude),
   fUseSpec(kFALSE),
   fType(),
-  fSpecification(0x0)
+  fSpecification(kAliHLTVoidDataSpec)
 {
   // Constructs a domain entry with a particular data type, any specification
   // and the exclude flag set.
@@ -379,7 +379,10 @@ int AliHLTDomainEntry::AsBinary(AliHLTUInt32_t buffer[4]) const
   tgt++;
   
   // specification
-  *tgt = fSpecification;
+  if (fUseSpec)
+    *tgt = fSpecification;
+  else
+    *tgt = kAliHLTVoidDataSpec;
 
   return 0;
 }