From 3d0404af1844739b35b17cfa99b8f6f36b614803 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 13 May 2020 20:25:17 +0200 Subject: [PATCH] STYLE: simpler use of autoPtr, unique_ptr for OSspecific, fileFormats --- .../MSwindows/fileMonitor/fileMonitor.H | 9 ++++--- .../POSIX/fileMonitor/fileMonitor.H | 11 ++++---- src/fileFormats/stl/STLCore.C | 26 +++++++------------ src/fileFormats/stl/STLCore.H | 12 ++++----- src/fileFormats/stl/STLReader.C | 10 ++++--- src/surfMesh/writers/vtk/vtkSurfaceWriter.C | 2 +- 6 files changed, 34 insertions(+), 36 deletions(-) diff --git a/src/OSspecific/MSwindows/fileMonitor/fileMonitor.H b/src/OSspecific/MSwindows/fileMonitor/fileMonitor.H index c3d90590e1..3b62cd7fea 100644 --- a/src/OSspecific/MSwindows/fileMonitor/fileMonitor.H +++ b/src/OSspecific/MSwindows/fileMonitor/fileMonitor.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation - Copyright (C) 2017-2018 OpenCFD Ltd. + Copyright (C) 2017-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -45,10 +45,11 @@ SourceFiles #ifndef fileMonitor_H #define fileMonitor_H -#include #include "Enum.H" #include "className.H" #include "DynamicList.H" +#include +#include // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -67,7 +68,7 @@ class fileMonitor { public: - // Public data types + // Public Data Types //- Enumeration defining the file state. enum fileState @@ -81,7 +82,7 @@ public: private: - // Private data + // Private Data //- Whether to use inotify (requires -DFOAM_USE_INOTIFY, see above) const bool useInotify_; diff --git a/src/OSspecific/POSIX/fileMonitor/fileMonitor.H b/src/OSspecific/POSIX/fileMonitor/fileMonitor.H index 4472bee15b..6dbeed8ac5 100644 --- a/src/OSspecific/POSIX/fileMonitor/fileMonitor.H +++ b/src/OSspecific/POSIX/fileMonitor/fileMonitor.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation - Copyright (C) 2017-2018 OpenCFD Ltd. + Copyright (C) 2017-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -45,10 +45,11 @@ SourceFiles #ifndef fileMonitor_H #define fileMonitor_H -#include #include "Enum.H" #include "className.H" #include "DynamicList.H" +#include +#include // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -67,7 +68,7 @@ class fileMonitor { public: - // Public data types + // Public Data Types //- Enumeration defining the file state. enum fileState @@ -81,7 +82,7 @@ public: private: - // Private data + // Private Data //- Whether to use inotify (requires -DFOAM_USE_INOTIFY, see above) const bool useInotify_; @@ -99,7 +100,7 @@ private: DynamicList