diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H index 32ed1d2447..3cbc6acbc8 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H @@ -258,7 +258,7 @@ public: //- Fix the vertex so that it can't be moved inline bool& fixed(); - inline indexedVertex& operator=(const indexedVertex& rhs) + inline void operator=(const indexedVertex& rhs) { Vb::operator=(rhs); @@ -268,8 +268,6 @@ public: this->alignment_ = rhs.alignment(); this->targetCellSize_ = rhs.targetCellSize(); this->vertexFixed_ = rhs.fixed(); - - return *this; } inline bool operator==(const indexedVertex& rhs) const diff --git a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C index 69cdf15e74..791d53cc59 100644 --- a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C +++ b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -286,8 +286,7 @@ Foam::Xfer Foam::PackedBoolList::used() const // * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * // -Foam::PackedBoolList& -Foam::PackedBoolList::operator=(const Foam::UList& lst) +void Foam::PackedBoolList::operator=(const Foam::UList& lst) { this->setSize(lst.size()); @@ -296,8 +295,6 @@ Foam::PackedBoolList::operator=(const Foam::UList& lst) { set(elemI, lst[elemI]); } - - return *this; } diff --git a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H index 904d6f1644..37620f97f8 100644 --- a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H +++ b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H @@ -191,24 +191,24 @@ public: // Member Operators //- Assignment of all entries to the given value. - inline PackedBoolList& operator=(const bool val); + inline void operator=(const bool val); //- Assignment operator. - inline PackedBoolList& operator=(const PackedBoolList&); + inline void operator=(const PackedBoolList&); //- Assignment operator. - inline PackedBoolList& operator=(const PackedList<1>&); + inline void operator=(const PackedList<1>&); //- Assignment operator. - PackedBoolList& operator=(const Foam::UList&); + void operator=(const Foam::UList&); //- Assignment operator, // using the labels as indices to indicate which bits are set - inline PackedBoolList& operator=(const labelUList& indices); + inline void operator=(const labelUList& indices); //- Assignment operator, // using the labels as indices to indicate which bits are set - inline PackedBoolList& operator=(const UIndirectList