Commit dd9b7d3d authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: make some OSspecific constructors explicit

parent 332cf334
clockTime/clockTime.C
clockValue/clockValue.C
cpuInfo/cpuInfo.C
cpuTime/cpuTime.C
memInfo/memInfo.C
signals/sigFpe.C
signals/sigSegv.C
signals/sigInt.C
......@@ -8,11 +13,6 @@ regExpPosix.C
timer.C
fileStat.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
......
......@@ -51,8 +51,8 @@ namespace POSIX
//- Declare namespace and its debug switch
NamespaceName("POSIX");
const label pathLengthChunk = 256;
const label pathLengthMax = 4096;
constexpr label pathLengthChunk = 256;
constexpr label pathLengthMax = 4096;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -120,7 +120,7 @@ public:
// Constructors
//- Construct null
fileMonitor(const bool useInotify);
explicit fileMonitor(const bool useInotify);
//- Destructor
......
......@@ -111,7 +111,7 @@ public:
);
//- Construct from Istream
fileStat(Istream& is);
explicit fileStat(Istream& is);
// Member Functions
......
......@@ -114,9 +114,8 @@ public:
// Constructors
//- Construct from components.
// newTimeOut=0 makes it do nothing.
timer(const unsigned int newTimeOut);
//- Construct with specified time-out, a value of 0 makes it a no-op.
explicit timer(unsigned int seconds);
//- Destructor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment