mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: make some OSspecific constructors explicit
This commit is contained in:
committed by
Andrew Heather
parent
332cf3345a
commit
dd9b7d3d7e
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user