mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: consistent lookupOrDefault template parameters
- in many cases can just use lookupOrDefault("key", bool) instead of
lookupOrDefault<bool> or lookupOrDefault<Switch> since reading a
bool from an Istream uses the Switch(Istream&) anyhow
STYLE: relocated Switch string names into file-local scope
This commit is contained in:
@ -270,17 +270,17 @@ Foam::profiling::profiling
|
||||
timers_(),
|
||||
sysInfo_
|
||||
(
|
||||
dict.lookupOrDefault<bool>("sysInfo", false)
|
||||
dict.lookupOrDefault("sysInfo", false)
|
||||
? new profilingSysInfo() : nullptr
|
||||
),
|
||||
cpuInfo_
|
||||
(
|
||||
dict.lookupOrDefault<bool>("cpuInfo", false)
|
||||
dict.lookupOrDefault("cpuInfo", false)
|
||||
? new cpuInfo() : nullptr
|
||||
),
|
||||
memInfo_
|
||||
(
|
||||
dict.lookupOrDefault<bool>("memInfo", false)
|
||||
dict.lookupOrDefault("memInfo", false)
|
||||
? new memInfo() : nullptr
|
||||
)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user