Make disallowed constructors and assignment operators public

This commit is contained in:
Will Bainbridge
2023-06-30 21:00:23 +01:00
parent de7121fb7f
commit d5f038493a
26 changed files with 189 additions and 188 deletions

View File

@ -173,6 +173,9 @@ protected:
//- Construct null
vtkPVFoamReader();
//- Disallow default bitwise copy construct
vtkPVFoamReader(const vtkPVFoamReader&) = delete;
//- Destructor
~vtkPVFoamReader();
@ -201,15 +204,12 @@ protected:
//- The file name for this case
char* FileName;
private:
//- Disallow default bitwise copy construct
vtkPVFoamReader(const vtkPVFoamReader&) = delete;
//- Disallow default bitwise assignment
void operator=(const vtkPVFoamReader&) = delete;
private:
//- Add/remove patch names to/from the view
void updatePatchNamesView(const bool show);

View File

@ -62,6 +62,7 @@ class vtkPVblockMeshReader
{
public:
vtkTypeMacro(vtkPVblockMeshReader, vtkMultiBlockDataSetAlgorithm);
void PrintSelf(ostream&, vtkIndent);
static vtkPVblockMeshReader* New();
@ -113,6 +114,9 @@ protected:
//- Construct null
vtkPVblockMeshReader();
//- Disallow default bitwise copy construct
vtkPVblockMeshReader(const vtkPVblockMeshReader&) = delete;
//- Destructor
~vtkPVblockMeshReader();
@ -135,20 +139,18 @@ protected:
//- Fill in additional port information
virtual int FillOutputPortInformation(int, vtkInformation*);
// The observer to modify this object when array selections are modified
//- The observer to modify this object when array selections are modified
vtkCallbackCommand* SelectionObserver;
//- The file name for this case
char* FileName;
private:
//- Disallow default bitwise copy construct
vtkPVblockMeshReader(const vtkPVblockMeshReader&) = delete;
//- Disallow default bitwise assignment
void operator=(const vtkPVblockMeshReader&) = delete;
private:
//- Add/remove point numbers to/from the view
void updatePointNumbersView(const bool show);