Skip to content
Snippets Groups Projects
Commit dd9b7d3d authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: make some OSspecific constructors explicit

parent 332cf334
Branches
Tags
No related merge requests found
clockTime/clockTime.C
clockValue/clockValue.C
cpuInfo/cpuInfo.C
cpuTime/cpuTime.C
memInfo/memInfo.C
signals/sigFpe.C signals/sigFpe.C
signals/sigSegv.C signals/sigSegv.C
signals/sigInt.C signals/sigInt.C
...@@ -8,11 +13,6 @@ regExpPosix.C ...@@ -8,11 +13,6 @@ regExpPosix.C
timer.C timer.C
fileStat.C fileStat.C
POSIX.C POSIX.C
cpuTime/cpuTime.C
clockTime/clockTime.C
clockValue/clockValue.C
cpuInfo/cpuInfo.C
memInfo/memInfo.C
/* /*
* Note: fileMonitor assumes inotify by default. Compile with -DFOAM_USE_STAT * Note: fileMonitor assumes inotify by default. Compile with -DFOAM_USE_STAT
......
...@@ -51,8 +51,8 @@ namespace POSIX ...@@ -51,8 +51,8 @@ namespace POSIX
//- Declare namespace and its debug switch //- Declare namespace and its debug switch
NamespaceName("POSIX"); NamespaceName("POSIX");
const label pathLengthChunk = 256; constexpr label pathLengthChunk = 256;
const label pathLengthMax = 4096; constexpr label pathLengthMax = 4096;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -120,7 +120,7 @@ public: ...@@ -120,7 +120,7 @@ public:
// Constructors // Constructors
//- Construct null //- Construct null
fileMonitor(const bool useInotify); explicit fileMonitor(const bool useInotify);
//- Destructor //- Destructor
......
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
); );
//- Construct from Istream //- Construct from Istream
fileStat(Istream& is); explicit fileStat(Istream& is);
// Member Functions // Member Functions
......
...@@ -114,9 +114,8 @@ public: ...@@ -114,9 +114,8 @@ public:
// Constructors // Constructors
//- Construct from components. //- Construct with specified time-out, a value of 0 makes it a no-op.
// newTimeOut=0 makes it do nothing. explicit timer(unsigned int seconds);
timer(const unsigned int newTimeOut);
//- Destructor //- Destructor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment