Make private member functions private

Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1969
This commit is contained in:
Henry Weller
2016-01-10 12:49:35 +00:00
parent 75cf86b769
commit 9439d83f39
4 changed files with 18 additions and 12 deletions

View File

@ -107,10 +107,10 @@ class IndirectList
{ {
// Private Member Functions // Private Member Functions
//- Disable default assignment operator //- Disallow default assignment operator
void operator=(const IndirectList<T>&); void operator=(const IndirectList<T>&);
//- Disable assignment from UIndirectList //- Disallow assignment from UIndirectList
void operator=(const UIndirectList<T>&); void operator=(const UIndirectList<T>&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,6 +72,8 @@ protected:
const cellZoneMesh& zoneMesh_; const cellZoneMesh& zoneMesh_;
private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,6 +71,16 @@ class faceZone
//- The name associated with the zone-labels dictionary entry //- The name associated with the zone-labels dictionary entry
static const word labelsName_; static const word labelsName_;
// Private Member Functions
//- Disallow default bitwise copy construct
faceZone(const faceZone&);
//- Disallow default bitwise assignment
void operator=(const faceZone&);
protected: protected:
// Protected data // Protected data
@ -98,13 +108,7 @@ protected:
mutable labelList* mePtr_; mutable labelList* mePtr_;
// Private Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
faceZone(const faceZone&);
//- Disallow default bitwise assignment
void operator=(const faceZone&);
//- Build primitive patch //- Build primitive patch
void calcFaceZonePatch() const; void calcFaceZonePatch() const;

View File

@ -62,7 +62,7 @@ class fvBoundaryMesh
// Private Member Functions // Private Member Functions
//- Disable default copy construct //- Disallow default copy construct
fvBoundaryMesh(const fvBoundaryMesh&); fvBoundaryMesh(const fvBoundaryMesh&);
//- Disallow assignment //- Disallow assignment