Added return values to assignment operators in the old parallel_part.h
authorAaron Becker <abecker3@illinois.edu>
Fri, 10 Feb 2006 21:59:23 +0000 (21:59 +0000)
committerAaron Becker <abecker3@illinois.edu>
Fri, 10 Feb 2006 21:59:23 +0000 (21:59 +0000)
Hopefully this fixes the solaris builds.

src/libs/ck-libs/ParFUM/ParFUM_internals.h

index 4313fba5dd61563f63bc39e2caecc04b5d125be3..21feb15d79fe7c0f27c0dd2cd9d8aaf013ecefd1 100644 (file)
@@ -1980,6 +1980,7 @@ public:
                }
                shared = new int[numShared];
                memcpy(shared,rhs.shared,numShared*sizeof(int));
+                return *this;
        }
 
        bool operator == (const NodeElem &rhs){
@@ -2038,7 +2039,9 @@ class MeshElem{
                }       
                m = new FEM_Mesh;
                m->copyShape(*(rhs.m));
-               (*this)+= rhs;
+               (*this) += rhs;
+                
+                return *this;
        }
        MeshElem& operator+=(const MeshElem &rhs){
                int oldel = m->nElems();
@@ -2054,7 +2057,9 @@ class MeshElem{
                                        }       
                                }       
                        }
-               }       
+               }
+
+                return *this;
        }
        virtual void pup(PUP::er &p){
                if(p.isUnpacking()){
@@ -2119,6 +2124,7 @@ public:
                }
                chunk = rhs.chunk;
                elementNo = rhs.elementNo;
+                return *this;
        }
        bool operator==(const Hashnode &rhs){
                if(numnodes != rhs.numnodes){