]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliAttribObj.cxx
Overlaps corrected.
[u/mrichter/AliRoot.git] / RALICE / AliAttribObj.cxx
index e1b7aa06b98a387313ad57d5995029b6f9069732..86ad11424e985d02b765a576d0d5272550f86b75 100644 (file)
@@ -45,6 +45,7 @@
 ///////////////////////////////////////////////////////////////////////////
 
 #include "AliAttribObj.h"
+#include "Riostream.h"
  
 ClassImp(AliAttribObj) // Class implementation to enable ROOT I/O
  
@@ -67,12 +68,12 @@ AliAttribObj::~AliAttribObj()
 // Destructor to delete dynamically allocated memory
 }
 ///////////////////////////////////////////////////////////////////////////
-AliAttribObj::AliAttribObj(AliAttribObj& a) : TObject(a),AliAttrib(a)
+AliAttribObj::AliAttribObj(const AliAttribObj& a) : TObject(a),AliAttrib(a)
 {
 // Copy constructor
 }
 ///////////////////////////////////////////////////////////////////////////
-TObject* AliAttribObj::Clone(char* name)
+TObject* AliAttribObj::Clone(const char* name) const
 {
 // Make a deep copy of the current object and provide the pointer to the copy.
 // This memberfunction enables automatic creation of new objects of the
@@ -80,6 +81,13 @@ TObject* AliAttribObj::Clone(char* name)
 // for containers when adding objects in case the container owns the objects.
 
  AliAttribObj* att=new AliAttribObj(*this);
+ if (name)
+ {
+  if (strlen(name))
+  {
+   cout << " *" << ClassName() << "::Clone* No support for SetName." << endl;
+  }
+ }
  return att;
 }
 ///////////////////////////////////////////////////////////////////////////