STYLE: make some OSspecific constructors explicit

This commit is contained in:
Mark Olesen
2019-04-02 15:36:16 +02:00
committed by Andrew Heather
parent 332cf3345a
commit dd9b7d3d7e
5 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -120,7 +120,7 @@ public:
// Constructors
//- Construct null
fileMonitor(const bool useInotify);
explicit fileMonitor(const bool useInotify);
//- Destructor

View File

@ -111,7 +111,7 @@ public:
);
//- Construct from Istream
fileStat(Istream& is);
explicit fileStat(Istream& is);
// Member Functions

View File

@ -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