]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity warning corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Nov 2011 19:12:57 +0000 (19:12 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Nov 2011 19:12:57 +0000 (19:12 +0000)
EPOS/TEpos.cxx

index 3e74b0b08c33b8f85ab296d269fb625259cb7cc7..5f364f435618629424d17ce75756caf18d12cbbb 100644 (file)
@@ -75,9 +75,9 @@ TEpos::~TEpos() {
        delete fIdConverter;
 }
 
-TEpos& TEpos::operator=(const TEpos&) {
+TEpos& TEpos::operator=(const TEpos& epos) {
   //operator=
-       if (!fIdConverter) {
+       if (!fIdConverter && (this != &epos)) {
                fIdConverter = new AliGenEposIsajetToPdgConverter();
        }
        return *this;